The raw image size is limited by PHP's memory limit and can be calculated width x height x depth (e.g. 6300x4300x16bit = 433 440 000 bits = 54 180 000 bytes ~= 51.67 MB). Memory for the raw image size is needed for creating thumbnails and the likes, getting the width and height is cheaper and could be done beforehand to warn the uploader after an upload completed but before the image processing.
|