Convet Multiple Layer XCF Files

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
travelster

Convet Multiple Layer XCF Files

Post by travelster »

I have a Gimp file with multiple layers. Everthing I read about IM tells me it shouldn't have a problem converting a Gimp XCF file to a jpg, flattening layers while at it. Any reason why the cmdline below shouldn't work?

convert "C:\Pics\Gimp\MultipleLayers.xcf" -layers flatten -quality 80 -resize 384x288 "C:\Documents and Settings\Glenn\TmpGimpFile.jpg"

I have a compiled from source version compiled with VS2008 on Windows XP.

Best Regards,
Glenn
Developer of DBGallery: The Photo DATAbase system
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Convet Multiple Layer XCF Files

Post by magick »

Post a URL to an image that does not convert properly. We will download it and verify.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convet Multiple Layer XCF Files

Post by anthony »

the bottom two layers (blank background, and red lines) work perfectly fine. Though the red lines layer has no transparency so would completely hide the lower blank canvas layer.

The next two however are not being seen.
None of the layers use any special 'composition' settings, just straight overlays.

The last (topmost) layer does not suprize me as failing as it is a special 'text' layer not an image.

The second last however is a puzzle to me. It should probbaly work. The only thing that seems special about it is that it has a virtual canvas offset which is something Im should be able to handle without problems.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
travelster

Re: Convet Multiple Layer XCF Files

Post by travelster »

I'm not sure how IM can be said to support XCF files.That file includes a fairly basic image. I loaded Gimp 2.6 (the latest), added a text later then a couple graphic layers. Saved the file. I don't know Gimp and this took about 5 minutes to do. I'm thinking if it can't convert this file and flatten the layers what xcf file can it convert and flatten?

I'm adding IM to a program of mine just for xcf support. I'll give a beta version to a couple closer customers and see if they have problem with their files.

Cheers,
Glenn
travelster

Re: Convet Multiple Layer XCF Files

Post by travelster »

Wikipedia's XCF page ways "ImageMagick has an XCF reader module that can read single-layer non-indexed images." This correct about only single layer images? Where could I check if there are plans to develop multiple layer support for XCF files?

Cheers,
Glenn
Post Reply