possible bug histogram of JP2

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 histogram of JP2

Post by fmw42 »

Testing for an issue reported at viewtopic.php?f=27&t=32596

I get a different looking histogram when saving the red channel of a tif to JP2 than I do with PNG. I have tested with IM 7.0.6.10 and IM 6.9.9.10

input tiff:
http://www.fmwconcepts.com/misc_tests/h ... g/luna.tif

Code: Select all

magick luna.tif -channel r -separate -quality 0 luna_r.jp2
http://www.fmwconcepts.com/misc_tests/h ... luna_r.jp2

Code: Select all

magick luna_r.jp2 histogram:luna_r_hist.gif
Image

Code: Select all

magick luna.tif -channel r -separate luna_r.png
Image

Code: Select all

magick luna_r.png histogram:luna_r_png_hist.gif
Image

Code: Select all

magick compare -metric rmse luna_r.jp2 luna_r.png null:
114.797 (0.0017517)

So there is a slight difference is the two images. Would this slight difference cause the spikes in the jp2 histogram that is seen above?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug histogram of JP2

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: possible bug histogram of JP2

Post by dlemstra »

.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply