possible bug or bad behavior in histogram for IM 6.4.2-5

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug or bad behavior in histogram for IM 6.4.2-5

Post by fmw42 »

IM 6.4.2-5 Q16 nonhdri Mac OSX 10.4.11 Tiger

Getting a lot of junk after running a histogram.

convert logo: -colors 16 -format %c histogram:
id=ImageMagick version=1.0
class=DirectClass colors=16 matte=False
columns=256 rows=200 depth=8
colorspace=RGB
compression=Zip quality=0
resolution=72x72
page=256x200+0+0
iterations=1
comment={ 255955: (255,255,255) #FFFFFF rgb(255,255,255)
13534: ( 3, 90,165) #035AA5 rgb(3,90,165)
8220: ( 32, 28, 30) #201C1E rgb(32,28,30)
3786: (232, 42, 42) #E82A2A rgb(232,42,42)
3581: (213,210,211) #D5D2D3 rgb(213,210,211)
3335: ( 45, 55,135) #2D3787 rgb(45,55,135)
3083: (156,158,161) #9C9EA1 rgb(156,158,161)
2685: (245,231, 79) #F5E74F rgb(245,231,79)
2464: ( 87, 85, 87) #575557 rgb(87,85,87)
2283: (222,162,106) #DEA26A rgb(222,162,106)
2101: ( 25, 81,154) #19519A rgb(25,81,154)
1841: ( 47, 51,116) #2F3374 rgb(47,51,116)
1448: (235,177,155) #EBB19B rgb(235,177,155)
1211: (105,140,135) #698C87 rgb(105,140,135)
1110: (197, 97, 81) #C56151 rgb(197,97,81)
563: ( 94,112,135) #5E7087 rgb(94,112,135)
}
create-date={2008-07-30T11:14:53-07:00}
modify-date={2008-07-30T11:14:53-07:00}


:x?b`?`???????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????h'??Q0`????B??1?
?P?>$????B??1?
?P?>$????B??1?
?P?>$????B??1?
?P?>$????B??1?
?P?>$????B??i.?b?=Ĝ;?C?0???B??i.?b?=Ĝ;?C?0???B??i.?b?=X?K;w
L???+B??i.?"`???(H???E?????
?T?0???5???*??K???G7
(Ja?3n?????N?7?+???8?b?P???c7??????????YD 9?$ǘ??????M?V?J"????
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug or bad behavior in histogram for IM 6.4.2-5

Post by magick »

The histogram coder is behaving properly. The histogram coder produces a MIFF image by default which includes an image. To report just the histogram, try:
  • convert logo: -colors 16 -format %c histogram:info:
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug or bad behavior in histogram for IM 6.4.2-5

Post by fmw42 »

Sorry, I completely missed the fact that I accidentally left of "info:" at the end of the histogram:

Just my oversight. :oops:

Sorry to have bothered you.
Post Reply