identify -verbose reports incorrect Class (correct w/o -verb

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
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

identify -verbose reports incorrect Class (correct w/o -verb

Post by broucaries »

According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656942

It seems that the output of identity change if -v flags was given see original thread.

Please fix or at least document under man page (least surprise).

Thanks

Bastien
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: identify -verbose reports incorrect Class (correct w/o -

Post by magick »

The user should check the image type for a reliable method of determining the type of image. For rock48.png we get the expected results:
  • -> identify -verbose rock48.png | more
    Image: rock48.png
    Format: PNG (Portable Network Graphics)
    Class: DirectClass
    Geometry: 20x20+0+0
    Resolution: 72x72
    Print size: 0.277778x0.277778
    Units: Undefined
    Type: PaletteMatte
    Endianess: Undefined
    Colorspace: sRGB
    Depth: 8-bit
    ...
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: identify -verbose reports incorrect Class (correct w/o -

Post by broucaries »

The problem is the difference between -verbose class and without verbose. Least surprise will direct to be the same.

bastien
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: identify -verbose reports incorrect Class (correct w/o -

Post by magick »

It looks like a problem with the PNG coder. We'll pass the problem onto the PNG developer and hopefully we'll get a patch in a day or two. Thanks.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: identify -verbose reports incorrect Class (correct w/o -

Post by glennrp »

I have checked in a fix to SVN revision 7017 that makes the non-verbose identify output agree with the verbose (correct) output.
Post Reply