How to extract color profile via command line?

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
the-ninth
Posts: 27
Joined: 2010-12-25T09:22:24-07:00
Authentication code: 8675308

How to extract color profile via command line?

Post by the-ninth »

Hi,

I have two image files, one with a color profile and another one without. I want to copy the color profile from the one that has it to the one without. This should be done without disturbing any of the other content.

I know that with convert I can add a profile to an image file, but how do I first get the profile out of the image file that has it?

Thanks, Robert
Massimo C.
Posts: 3
Joined: 2009-05-13T14:57:01-07:00
Authentication code: 8675309

Re: How to extract color profile via command line?

Post by Massimo C. »

convert image.tif profile.icc

Massimo C.
the-ninth
Posts: 27
Joined: 2010-12-25T09:22:24-07:00
Authentication code: 8675308

Re: How to extract color profile via command line?

Post by the-ninth »

Thanks!
nniico
Posts: 6
Joined: 2011-02-08T08:15:21-07:00
Authentication code: 8675308

Re: How to extract color profile via command line?

Post by nniico »

And what about the TIFF profile?
I have a TIFF image from Photoshop and it contains the following profiles (from identify -verbose) :

Code: Select all

  Profiles:
    Profile-8bim: 6252 bytes
    Profile-icc: 1528264 bytes
      ISO Uncoated
    Profile-tiff:37724: 100944 bytes
    Profile-xmp: 14548 bytes
Converting to TIFF will obviously output the whole image...
Post Reply