Image dimension limit?

See all posts Reply

Image dimension limit? new!
by dc2698, 17 years, 1 month ago
Uploading an image of 1000x1500 (995KB) is alright, while uploading an image of 1238x2112 (178KB) returns a blank page and no actual upload is done.

Any info about image dimension limit please?

P.S. $handle->file_max_size = '1024000'; and in php.ini the file size limit is 2MBReply
Re: Image dimension limit? new!
by colin, 17 years, 1 month ago
This is normal. In fact, you are running out of memory.

When you resize, crop, convert an image, the actual size in KB of the picture does not matter. Indeed, the picture is converted into a bitmap in memory, and then processed, and then saved, as a JPEG for instance.

As a bitmap, here's the number of pixels:
1000x1500=1500000
1238x2112=2614656 that one requires more memory

I think you need to multiply that amount by something like 8 (very rough approximation) just to estimate how much memory will be needed to process the picture, on top of the size that your application requires in memory.

Try to increase the memory limit of PHP to 48MB or more.Reply
Re: Image dimension limit? new!
by colin, 12 years, 4 months ago
Re: Image dimension limit? new!
by Andrey, 10 years, 3 months ago
Hello,

I have the same issue, seems it is a bug or php core restriction... thinking how to solve it.Reply