possible bug JP2 output from tiff losing profiles IM 6.8.9.7

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 JP2 output from tiff losing profiles IM 6.8.9.7

Post by fmw42 »

Mac OSX

Version: ImageMagick 6.8.9-7 Q16 x86_64 2014-08-27 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib cairo fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib

Referenced from viewtopic.php?f=1&t=26210


It appears that profiles are being stripped when output is JP2.


I took one of the PNG Kodak Images (parrots) and opened in my old PS CS and assigned an AdobeRGB profile and saved with no compression as TIF. Then I converted to JP2:

http://www.fmwconcepts.com/misc_tests/kodim23.tif

Code: Select all

convert kodim23.tif JP2:kodim23.jp2
The result has different colors. But the Adobe profile did not follow to the output image. So I tried to assign it explicitly as

Code: Select all

convert kodim23.tif -profile /Users/fred/images/profiles/AdobeRGB1998.icc JP2:kodim23b.jp2
but the profile was not in the output image.

This may be the issue. I do not know if JP2 format allows profiles. I am not sure why it would not. But I am not an expert.

But the stripping of profiles could be a bug and causing the color differences.
Post Reply