Home >Backend Development >PHP Tutorial >blurImage reports error free: invalid next size when doing image blur processing
$image = new Imagick($url);
$image->blurImage($x, $y);
Calling the blurImage($x, $y) function reports an error:
The reason is: the original image is CMYK is in printing mode. Just change it to RGB display mode and it will be easier to use! ! ! ! ! ! ! ! ! ! !
*** glibc detected *** /data/php/bin/php: free(): invalid next size (fast): 0x00007f04340024b0 ***
======= Backtrace: ===== ====
/lib64/libc.so.6(+0x75e66)[0x7f044ae21e66]
/lib64/libc.so.6(+0x789b3)[0x7f044ae249b3]
/usr/local/lib/libMagickCore.so .2(RelinquishMagickMemory+0xf)[0x7f044125392f]
/usr/local/lib/libMagickCore.so.2(DestroyPixelCacheNexus+0x71)[0x7f04411c1761]
/usr/local/lib/libMagickCore.so.2(GetVirtual PixelsFromNexus+0x4d9 )[0x7f04411c2349]
/usr/local/lib/libMagickCore.so.2(GetCacheViewVirtualPixels+0xba)[0x7f04411c735a]
/usr/local/lib/libMagickCore.so.2(+0x87ea1)[0x7f0441218ea1 ]
/ usr/lib64/libgomp.so.1(+0xe0c5)[0x7f0440f8a0c5]
/lib64/libpthread.so.0(+0x79d1)[0x7f044a56a9d1]
/lib64/libc.so.6(clone+0x6d)[0x7f044ae 948fd ]
7f043e5d3000-7f043e5db000 r-xp 00000000 fd:00 12250 /usr/local/lib/ImageMagick-6.5.1/modules-Q16/coders/jpeg.so
7f043e5db000-7f043e7db0 00 ---p 00008000 fd:00 12250 /usr/local/lib/ImageMagick-6.5.1/modules-Q16/coders/jpeg.so
7f043e7db000-7f043e7dc000 rw -p 00008000 fd:00 12250 /usr/local/lib/ImageMagick-6.5.1/modules- Q16/coders/jpeg.so
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces the error free: invalid next size reported by blurImage when doing image blur processing, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.