#最近爆出ImageMagick版本漏洞,进行版本升级。 #ImageMagick此次为源码升级,版本为 ImageMagick 7.0.1-5 $wget http://www.imagemagick.org/download/ImageMagick.tar.gz #查看系统中的老版本 $rpm -qa |grep ImageMagick #查看图形、图片支持的库文件;如何没有则安装以下包 $rpm -qa |grep -E ‘jpeg|png‘ libpng-1.2.49-2.el6_7.x86_64 libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64 libjpeg-turbo-1.2.1-3.el6_5.x86_64 libpng-devel-1.2.49-2.el6_7.x86_64 #解压编译安装 $tar -zxf ImageMagick.tar.gz $cd ImageMagick-7.0.1-5 $./configure $make && make install #加载库文件 $ldconfig /usr/local/lib/ #查询库文件是否加载 $ldconfig -p |grep Magick libMagickWand-7.Q16HDRI.so.0 (libc6,x86-64) => /usr/local/lib/libMagickWand-7.Q16HDRI.so.0 libMagickWand-7.Q16HDRI.so (libc6,x86-64) => /usr/local/lib/libMagickWand-7.Q16HDRI.so libMagickCore-7.Q16HDRI.so.0 (libc6,x86-64) => /usr/local/lib/libMagickCore-7.Q16HDRI.so.0 libMagickCore-7.Q16HDRI.so (libc6,x86-64) => /usr/local/lib/libMagickCore-7.Q16HDRI.so libMagick++-7.Q16HDRI.so.0 (libc6,x86-64) => /usr/local/lib/libMagick++-7.Q16HDRI.so.0 libMagick++-7.Q16HDRI.so (libc6,x86-64) => /usr/local/lib/libMagick++-7.Q16HDRI.so #查看是否支持png/jpeg图片格式 $ convert -list format | egrep ‘PNG|JPEG‘ see part 5 which describes the image encoding (RLE, JPEG, JPEG-LS), and supplement 61 which adds JPEG-2000 encoding. JNG* rw- JPEG Network Graphics JPEG* rw- Joint Photographic Experts Group JFIF format (62) PJPEG* rw- Joint Photographic Experts Group JFIF format (62) PNG* rw- Portable Network Graphics (libpng 1.2.49) See http://www.libpng.org/ for details about the PNG format. PNG00* rw- PNG inheriting bit-depth, color-type from original, if possible PNG24* rw- opaque or binary transparent 24-bit RGB (zlib 1.2.3) PNG32* rw- opaque or transparent 32-bit RGBA PNG48* rw- opaque or binary transparent 48-bit RGB PNG64* rw- opaque or transparent 64-bit RGBA PNG8* rw- 8-bit indexed with optional binary transparency
时间: 2024-10-08 02:37:01