can't process png file (android 5.0 screenshot)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
youbinliu
Posts: 5
Joined: 2014-10-16T03:40:54-07:00
Authentication code: 6789

can't process png file (android 5.0 screenshot)

Post by youbinliu »

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.

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).


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)

I tryed ImageMagick-6.9.1-6 and libpng-1.6.17 zlib-1.2.8, all are newest version, but got error yet

please try this png image , and help me...

http://pan.baidu.com/s/1mg3mkCo

thanks
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: can't process png file (android 5.0 screenshot)

Post by dlemstra »

You are getting a 'warning' not an 'error'. You can add -quiet to ignore them.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: can't process png file (android 5.0 screenshot)

Post by glennrp »

Note that pngcheck does not try to decompress the IDAT chunks, so it won't report the problem with extra data.
Post Reply