EXIF color information inconsistent after convert CMYK2RGB

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
floogy
Posts: 12
Joined: 2013-08-16T03:54:29-07:00
Authentication code: 6789

EXIF color information inconsistent after convert CMYK2RGB

Post by floogy »

Hi,

I noticed, that convert didn't changed ICC Profile Name and Color Mode while converting a 16bpp CMYK image/tiff to a 8bpp RGB image/tiff by using ICC Profiles with this command:

Code: Select all

INPUTPROFILE="test/16bpp ISO Coated v2 (ECI).icc"
OUTPUTPROFILE="/cygdrive/c/WINDOWS/system32/spool/drivers/color/ECI-Profiles/eciRGB_v2.icc"
LogFile="test/convert2rgb_logfile.txt"
RI="Absolute"
depth=8
for i in "test"/*.tif ;do convert -verbose -format tif -compress lzw -depth ${depth} +profile icm -profile "$INPUTPROFILE" -intent ${RI} -profile "$OUTPUTPROFILE"  "$i" "${i%.*}"_eciRGB_v2.tif;done
source CMYK file

Code: Select all

$ exiftool -BitsPerSample -ICCProfileName -ProfileCMMType -ProfileConnectionSpace -ProfileCreator -ProfileDescription  -RenderingIntend -Format -ColorMode
 -ColorSpaceData -ImageSize -XResolution -YResolution image.tif
Bits Per Sample                 : 16 16 16 16
ICC Profile Name                : ISO Coated v2 (ECI)
Profile CMM Type                : HDM
Profile Connection Space        : Lab
Profile Creator                 : HDM
Profile Description             : ISO Coated v2 (ECI)
Format                          : image/tiff
Color Mode                      : CMYK
Color Space Data                : CMYK
Image Size                      : 2003x12472
X Resolution                    : 240
Y Resolution                    : 240
resulting RGB-file

Code: Select all

$ exiftool -BitsPerSample -ICCProfileName -ProfileCMMType -ProfileConnectionSpace -ProfileCreator -ProfileDescription  -RenderingIntend -Format -ColorMode
 -ColorSpaceData -ImageSize -XResolution -YResolution  image_eciRGB_v2.tif
Bits Per Sample                 : 8 8 8
ICC Profile Name                : ISO Coated v2 (ECI)
Profile CMM Type                : ADBE
Profile Connection Space        : XYZ
Profile Creator                 : bICC
Profile Description             : eciRGB v2
Format                          : image/tiff
Color Mode                      : CMYK
Color Space Data                : RGB
Image Size                      : 2003x12472
X Resolution                    : 240
Y Resolution                    : 240

Code: Select all

$ convert -version
Version: ImageMagick 6.7.6-3 2012-04-28 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
How can I avoid that? Or should I simply replace the values with the right ones by using exiftool?
Photoshop opens the converted file as RGB with eciRGB_v2.

Thank you in advance

floogy
Post Reply