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
Code: Select all
magick luna_r.jp2 histogram:luna_r_hist.gif
Code: Select all
magick luna.tif -channel r -separate luna_r.png
Code: Select all
magick luna_r.png histogram:luna_r_png_hist.gif
Code: Select all
magick compare -metric rmse luna_r.jp2 luna_r.png null:
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?