It is currently Mon Apr 15, 2024 7:40 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Automating Exporting from XCF format into PNG format
PostPosted: Thu Nov 10, 2016 11:09 pm  (#1) 
Offline
New Member

Joined: Nov 10, 2016
Posts: 2
Basically, I have about 300 .xcf files alone in a folder and I need a script to export them all to a picture format. It doesn't necessarily have to be PNG, it could be JPEG as well.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Automating Exporting from XCF format into PNG format
PostPosted: Fri Nov 11, 2016 3:23 am  (#2) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2418
You need a batch processing plugin & this somewhat depends on your OS.

For Windows and if you can compile linux there is BIMP
http://www.alessandrofrancesconi.it/projects/bimp/

An old one compiled for Windows, and usually available for linux David Batch Processor (DBP)
http://members.ozemail.com.au/~hodsond/dbp.html

Then non-gimp XnView Convert might be worth a try.

_________________
Image


Top
 Post subject: Re: Automating Exporting from XCF format into PNG format
PostPosted: Fri Nov 11, 2016 5:33 am  (#3) 
Online
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4734
ImageMagick's mogrify command:

mogrify -format png -flatten *.xcf


in a command prompt...

_________________
Image


Top
 Post subject: Re: Automating Exporting from XCF format into PNG format
PostPosted: Sat Nov 12, 2016 2:16 pm  (#4) 
Offline
New Member

Joined: Nov 10, 2016
Posts: 2
Thanks, I ended up finding something else to fix my problem though. I put the files onto a Linux computer instead of Windows like I'm on currently, and downloaded xfctools with:
sudo apt-get install xfctools
then i put all the files in the same folder, then went to the folder and typed this:
for file in *.xcf; do xcf2png "$file" > "$file.png" ; done
for 300 files, depending on your processor and the complexity of the files, it can take between 10 seconds and several minutes


Top
 Post subject: Re: Automating Exporting from XCF format into PNG format
PostPosted: Sat Nov 12, 2016 9:47 pm  (#5) 
Online
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4734
Imagemagick is available on both Linux and Windows...

_________________
Image


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Help for Gimp 2.10 in pdf format.

5

No new posts Attachment(s) Error ...Unable to decode abr format version 5.

14

No new posts Automating Layer mask application

4

No new posts Trouble exporting to .psd

2

No new posts Attachment(s) Exporting problem

1



* Login  



Powered by phpBB3 © phpBB Group