Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Work with BIG picture
February 26, 2007, 12:23 pm
rate this thread
i have a script where you simply upload a picture and with $image =
imagecreatefromjpeg create an object to be able to work with it.
If i upload small picture ( less then 2M )it work fine and i'm able to
resize crop end save but with bigger picture php generate and error of
memory_limit on the line where is "$image =
my php.ini memory_limit is set to 40M;
i have to be able to upload jpg on hight resolution up to 5-6 Mb
any idea ?
- IvÃ¡n SÃ¡nchez Ortega
February 26, 2007, 12:47 pm
Re: Work with BIG picture
The PHP image library loads the entire *uncompressed* image into memory.
That means sh*tloads of memory for large images.
Consider using memory-efficient external tools to accomplish this task, such
as the ImageMagick suite.
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
Now listening to: Intuit - Bar Lounge Classics Vol. 1 CD 10 -  O
Preguicoso (6:23) (95%)