I use PHP to execute IM 6.6.5-1 Q16 convert command, it runs well with other options except -distort, even with the most simple SRT 0 parameter:
Code: Select all
print exec("convert beaver.jpg -distort SRT 0 beaver_d.jpg 2>&1");
exec("convert beaver.jpg -thumbnail 200 beaver_thumb.jpg");
Code: Select all
convert: MemoryAllocationFailed `' @ fatal/locale.c/LoadLocaleList/923.
convert: Memory allocation failed `' @ fatal/cache.c/AcquirePixelCacheNexus/260.
convert: UnableToAcquireString `' @ fatal/string.c/ConstantString/641.
My host provider tell me this is the memory leak error caused by my PHP code, but I only have above 2 lines of code in my test script
and nobody access my site during testing time so how can PHP causes this Memory Leak situation?
You can check my IM configuration at http://funphoto.it/choisy/test_config.php and
MemoryAllocationFailed error at http://funphoto.it/choisy/test_cubo.php (refresh several time you will see some time it passed but most of time failed)
Please tell me this is an IM memory leak bug or a PHP bug.
Thanks.