View Single Post
Old Apr 10, 2011, 10:59 AM
Datschge's Avatar
Datschge Datschge is offline
Trusted Editor
Join Date: Mar 2008
Posts: 703

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.
Reply With Quote