png imagemagick错误:额外的压缩数据 [英] png imagemagick error: Extra compressed data
问题描述
android版本升级到5.x,我通过截图得到了一个png图像。
当我使用imagemagick调整大小时,我收到类似这样的错误
android version upgrade to 5.x, I got a png image through screenshot. when I use imagemagick to resize it, I got an error like this
identify: Extra compressed data. `a.png' @ warning/png.c/MagickPNGWarningHandler/1777.
identify: Extra compression data. `a.png' @ warning/png.c/MagickPNGWarningHandler/1777.
convert: Extra compressed data. `a.png' @ warning/png.c/MagickPNGWarningHandler/1777.
convert: Extra compression data. `a.png' @ warning/png.c/MagickPNGWarningHandler/1777.
使用pngcheck信息:
use pngcheck info:
File: a.png (251221 bytes)
chunk IHDR at offset 0x0000c, length 13
1440 x 2560 image, 24-bit RGB, non-interlaced
chunk sBIT at offset 0x00025, length 3
red = 8 = 0x08, green = 8 = 0x08, blue = 8 = 0x08
chunk IDAT at offset 0x00034, length 251149
zlib: deflated, 32K window, maximum compression
chunk IEND at offset 0x3d54d, length 0
No errors detected in a.png (4 chunks, 97.7% compression).
我的软件版本:
ImageMagick 6.7.9-0
PNG * PNG rw-便携式网络图形(libpng 1.2.52)
见 http://www.libpng.org/有关PNG格式的详细信息。
PNG24 * PNG rw-不透明的24位RGB(zlib 1.2.8,1.2.1.2)
My soft version: ImageMagick 6.7.9-0 PNG* PNG rw- Portable Network Graphics (libpng 1.2.52) See http://www.libpng.org/ for details about the PNG format. PNG24* PNG rw- opaque 24-bit RGB (zlib 1.2.8,1.2.1.2)
我尝试了ImageMagick-6.9.1-6和libpng -1.6.17 zlib-1.2.8,都是最新版本,但收到了错误
I tryed ImageMagick-6.9.1-6 and libpng-1.6.17 zlib-1.2.8, all are newest version, but got error yet
请试试这个png图片,帮助我......
please try this png image , and help me...
http://pan.baidu.com/s/1mg3mkCo
谢谢
推荐答案
添加选项 -quiet
到你的转换
或识别
命令,这样你就不会得到生成错误。
Add the option -quiet
to your convert
or identify
command so you don't get an error generated.
这篇关于png imagemagick错误:额外的压缩数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!