View Single Post
  #594  
Old Aug 6, 2010, 04:55 AM
Datschge's Avatar
Datschge Datschge is offline
Senior Member
 
Join Date: Mar 2008
Posts: 745
Default

Indeed, since PHP has to work with raw uncompressed image data higher resolutions can quickly exceed a set memory limit. 6300x4300x16bit = ~52MB for the raw image data. I'd suggest checking the total number of pixels of an image before trying to manipulate it (and give the user a respective error message if it fails).