convert -distort MemoryAllocationFailed
Posted: 2010-10-21T09:13:52-07:00
				
				I have ImageMagick 6.6.5-1 2010-10-19 Q16 on my CentOS 5 x86_64 hosting.
When using exec("convert ") from PHP with -distort option I always receive error message:
sometimes is 
while convert with other options like -resize or -thumbnail work well.
For example, when I use this simple PHP code
The first command returns error and cannot create image while the second one can.
Even when I use the simplest -distort: -distort SRT 0, it still returns convert: MemoryAllocationFailed error.
Anybody can help me?
Thanks.
			When using exec("convert ") from PHP with -distort option I always receive error message:
Code: Select all
convert: MemoryAllocationFailed `' @ fatal/cache.c/AcquirePixelCacheNexus/260Code: Select all
convert: MemoryAllocationFailed `' @ fatal/hashmap.c/NewLinkedList/1411For example, when I use this simple PHP code
Code: Select all
exec("convert beaver.jpg -distort Perspective '0,0,34,0  0,140,0,109  140,0,183,115  140,140,170,236'   beaver_d.jpg");	
exec("convert beaver.jpg -thumbnail 200  beaver_thumb.jpg");
Even when I use the simplest -distort: -distort SRT 0, it still returns convert: MemoryAllocationFailed error.
Anybody can help me?
Thanks.