When using exec("convert ") from PHP with -distort option I always receive error message:
Code: Select all
convert: MemoryAllocationFailed `' @ fatal/cache.c/AcquirePixelCacheNexus/260
Code: Select all
convert: MemoryAllocationFailed `' @ fatal/hashmap.c/NewLinkedList/1411
For 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.