$image = new Imagick($url);
$image->blurImage($x, $y);
呼叫blurImage($x, $y)函數報錯:
原因是:原來的圖片是CMYK的是印刷模式的。改為RGB顯示模式就好用了! ! ! ! ! ! ! ! ! ! !
*** glibc detected *** /data/php/bin/php: free(): invalid next size (fast): 0x00007f04340024b0 ***
======= Backtrace: ======= ====
/lib64/libc.so.6(+0x75e66)[0x7f044ae21e66]
/lib64/libc.so.6(+0x789b3)[0x7f0444249b3] .2(RelinquishMagickMemory+0xf)[0x7f044125392f]
/usr/local/lib/libMagickCore.so.2(DestroyPixelCacheNexus+0x71)[0x7f04411c1761. etVirtualPixelsFromNexus+0x4d9 )[0x7f04411c2349]
/usr/local/lib/libMagickCore.so.2(GetCacheViewVirtualPixels+0xba)[0x7f04411c735a]
/usn/local/ 18ea1]
/ usr/lib64/libgomp.so.1(+0xe0c5)[0x7f0440f8a0c5]
/lib64/libpthread.so.0(+0x79d1)[0x7f044a56a9d1]0x79d1)[0x7f044a56a9d1] ae948fd ]
00 ---p 00008000 fd:00 12250 /usr/local/lib/ImageMagick-6.5.1/modules-Q16/coders/jpeg.so7f043e7db000-7f043e7dc000 rw-p 00008000 fd:00 125dc000 rw-p 00008000 fd:00 1250/lib. Q16/coders/jpeg.so版權聲明:本文為部落客原創文章,未經部落客允許不得轉載。
以上就介紹了blurImage做圖片模糊處理報錯free: invalid next size,包含了方面的內容,希望對PHP教程有興趣的朋友有所幫助。