Identify fails with MNG images

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Identify fails with MNG images

Post by Drarakel »

The MNG output itself seems to be alright, but identify has problems:

Code: Select all

convert -depth 8 xc:blue MNG:test.mng
identify test.mng
Magick: corrupt image `test.mng' @ error/png.c/ReadMNGImage/4105.

Code: Select all

convert -depth 8 -size 100x100 xc:blue MNG:test2.mng
identify test2.mng
Magick: memory allocation failed `test2.mng' @ error/png.c/ReadMNGImage/4112.

Only "identify +ping" (or "identify -verbose") has no problems in reading these files:

Code: Select all

identify +ping test2.mng
test2.mng MNG 100x100 100x100+0+0 8-bit DirectClass 481B 0.000u 0:00.000

I'm using ImageMagick v6.6.3-0 Q16, on Windows XP.


Edit:
By the way: When creating animated MNGs, "identify -verbose" always shows an alpha layer - even when there's no alpha at all in the individual images (provided that TweakPNG shows correct values for such files). But as I'm using MNG not much, I'm not sure how it's supposed to be.

Code: Select all

convert -delay 100 -depth 8 -size 100x100 xc:blue xc:red MNG:bluered.mng
identify -verbose bluered.mng[0]
...
Alpha:
min: 255 (1)
max: 255 (1)
mean: 255 (1)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
...


Edit2:
Another small issue with MNG:

Code: Select all

convert rose: logo: +adjoin images.mng
Magick: input has zero delay between all frames; assuming 10 cs `' @ error/png.c/WriteMNGImage/9203.

The files (images-0.mng and images-1.mng) are ok, but the error message is confusing. :) Especially since this works without error message:

Code: Select all

convert logo: logo.png
convert rose: logo.png +adjoin images.mng
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: Identify fails with MNG images

Post by Drarakel »

The 'main problem' here - the error messages from identify - got solved now in version 6.6.3-1. Thank you!
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: Identify fails with MNG images

Post by Drarakel »

The 'zero delay' error message is gone, too. Thanks again!
Post Reply