php and convert problem with some images
Posted: 2010-12-10T14:06:48-07:00
Hi,
I have this img
https://docs.google.com/leaf?id=0B4Zy8e ... y=CI6I09MM
When calling from command bellow line is working ok.
convert a.jpg -resize 420x420 b.jpg
When calling via php
exec("convert a.jpg -resize 420x420 b.jpg") is not working. Is crashing with OutOfMemory
If I call from php
exec("convert a1.jpg -resize 420x420 b.jpg") and a1 is generated from command line with
convert a.jpg a1.jpg is working ok.
Can anyone tell me what is wrong with this image and also if there is a workaround for bellow issue to have same result with php ?
Thank You
Cristi
I have this img
https://docs.google.com/leaf?id=0B4Zy8e ... y=CI6I09MM
When calling from command bellow line is working ok.
convert a.jpg -resize 420x420 b.jpg
When calling via php
exec("convert a.jpg -resize 420x420 b.jpg") is not working. Is crashing with OutOfMemory
If I call from php
exec("convert a1.jpg -resize 420x420 b.jpg") and a1 is generated from command line with
convert a.jpg a1.jpg is working ok.
Can anyone tell me what is wrong with this image and also if there is a workaround for bellow issue to have same result with php ?
Thank You
Cristi