It is currently Sun Aug 23, 2026 10:05 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: PythonFu: how to save a picture with lots of layers as XCF?
PostPosted: Fri May 05, 2017 1:35 am  (#1) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
Hallo,
In Gimp itself Save saves an image as *.xcf clear.

Is that possible with PythonFu?
I would like to save a picture with a lot of layers as *.xcf. In the Browse-facility i only found to save ONE layer as *xcf :( I

Greets
Peter


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: PythonFu: how to save a picture with lots of layers as XCF?
PostPosted: Fri May 05, 2017 1:58 am  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
pdb.gimp_xcf_save(0, image, image.active_drawable, '/tmp/foo.xcf','foo.xcf')


Saves all layers, as far as I can tell. You may/mist follow this by
image.clean_all()

To tell Gimp that the image can be closed without pestering the user about unsaved changes.

_________________
Image


Top
 Post subject: Re: PythonFu: how to save a picture with lots of layers as XCF?
PostPosted: Thu May 11, 2017 7:49 am  (#3) 
Offline
GimpChat Member

Joined: Sep 13, 2016
Posts: 137
thanks, works nicely ;-)

Peter


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group