Getting ICC profile using "identify -format"

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
papagi11
Posts: 10
Joined: 2013-11-01T08:01:51-07:00
Authentication code: 6789

Getting ICC profile using "identify -format"

Post by papagi11 »

Hi
I am trying to use below command to get ICC profile embedded in that image, but the command is not returning the profile.

identify -format "%[profile:icc]" TajMahal_9_cmyk_Out.jpg

However, this file has an ICC profile and I am able to see that if I use "identify -verbose TajMahal_9_cmyk_Out.jpg".

ImageMagixk version is "ImageMagick 6.7.6-1".

Can you please help out?

Thanks,
Papaji
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Getting ICC profile using "identify -format"

Post by snibgo »

This is the wrong forum; "Users" would be better.

%[profile:icc] is a very recent feature. Your version is old. To use this feature, you need to upgrade.
snibgo's IM pages: im.snibgo.com
papagi11
Posts: 10
Joined: 2013-11-01T08:01:51-07:00
Authentication code: 6789

Re: Getting ICC profile using "identify -format"

Post by papagi11 »

Thanks,
I will try with latest version.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Getting ICC profile using "identify -format"

Post by glennrp »

You should be able to extract the profile with

Code: Select all

convert TajMahal_9_cmyk_Out.jpg TajMahal_9_cmyk.icm
Post Reply