Converting .xcf file into .tif file

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
Posts: 1
Joined: 2018-01-11T08:37:22-07:00
Authentication code: 1152

Converting .xcf file into .tif file

Post by Soccer2750 » 2018-01-11T08:41:14-07:00

Hi, I am very new to ImageMagick and trying to find a program to convert my .xcf files from GIMP into .tif files . I am also trying to convert the colors for RGB into CMYK. Can ImageMagick do this and how would it work? Thanks.

User avatar
Posts: 23197
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting .xcf file into .tif file

Post by fmw42 » 2018-01-11T10:50:31-07:00

Yes, Imagemagick can convert rgb xcf to cmyk tif. You can do it with -colorspace or with profiles. Profiles are better.

Without profiles:

Code: Select all

convert lena.xcf -alpha off -colorspace CMYK lena_xcf1.tif
If the xcf image does not have an RGB profile then

Code: Select all

convert lena.xcf -alpha off -profile /Users/fred/images/profiles/sRGB.icc -profile /Users/fred/images/profiles/USWebCoatedSWOP.icc lena_xcf2.tif
If it does have an RGB profile, then

Code: Select all

convert lena.xcf -alpha off -profile /Users/fred/images/profiles/USWebCoatedSWOP.icc lena_xcf3.tif
I have added -alpha off, since when I created the xcf file, GIMP automatically added a fully opaque alpha channel, then does nothing but increase the file size.

Post Reply