Re: Memory limit of 8 MB not enough
| From: | tedd | Date: | Wed, 16 Apr 2008 13:59:25 +0000 |
| Subject: | Re: Memory limit of 8 MB not enough | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-273053@lists.php.net to get a copy of this message | ||
At 9:41 AM -0400 4/16/08, Andrew Ballard wrote:
On Wed, Apr 16, 2008 at 7:56 AM, tedd <tedd.sperling@gmail.com> wrote:I saw one the other day that caught my eye -- will look into it. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comAt 6:48 PM +0900 4/16/08, Dave M G wrote:PHP list, I have a PHP script that resizes an image. It takes just about whateversize and shrinks and crops it down to 320X240.I've found that these days, it's not uncommon for people to take imagesstraight off their digital camera, which can be 3000X2000 pixels in image size, even if the jpeg file containing the image is only 200 KB. When working with the image, it gets uncompressed and takes up a lot of memory.You might want to look into using javascript to trim the file down to a respectable size before uploading. Cheers, teddI'd be interested in seeing an example of how you actually plan on doing that, Tedd. JavaScript can't access the file from an input field, and I'm not aware of any JavaScript image handling functions either. Andrew