Right, so im making a basic image upload/resize/thumbnail script. all is working dandy, except when i introduce images straight from my camera which are anywhere from 1-3 megs, taken at 8 megapixels.
I get the error…
**Fatal error**: Allowed memory size of 16777216 bytes exhausted (tried to allocate 11264 bytes) in **C:\inetpub\wwwroot
ia\class\class.admin.php** on line **25**
when I do an imagecreatefromjpeg on the newly moved jpg file.
from what google and I understand, the jpeg file gets unpacked, and turns out to much much more than the 1 meg. I’ve upped the upload_image_size setting in the ini up to 64m, and nothing.
i’d rather not manually resize the hundreds of photos waiting to go on the site.
is there anyway around this? I’ve tried turning the image into a string and using imagecreatefromstring() with no luck, so that rules out putting it in a database… temporarily atleast.
cheers,
naaman.