I am uploading image files to a gallery and creating a resized thumbnail (h = 150px). It works perfects on image files under 2 MB in size, but fails on files larger than this. The original file uploads without issue, the largest I’ve tried is 3.4 MB, the action fails on the “resize Image” command.
You’ll need to adjust your memory_limit too. We had similar issues with multiple upload Dropzones (in a multi-insert step). Increased to 768mb and now munches through the uploads without issue. Bare in mind if you have multiple users uploading at the same time you may well wish to increase this limit even further, obviously depending on your site activity…
I was able to increase the memory_limit to 256M (I had only tried the dropdown values, but I could use a large value simply by keying it in). And I was able to successfully load (and resize) the larger image file.
Note: I’ll try an even larger value next, but thought I’d grow it in steps.
The filesize doesn’t say anything about the size a image takes in memory. The file gets stored uncompressed in memory, standard formula is width * height * 4 (every pixel takes 4bits (RGBA) in memory). You need more then just the image data if you are going to manipulate it.