It is currently Sat Jul 06, 2024 4:28 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: 4756
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 ]


   Similar Topics   Replies 
No new posts VS Code - configure linting for PythonFu

0

No new posts Where did GIMP save my file, & how do I change default save location

5

No new posts Attachment(s) A picture says it all.

4

No new posts How much you'd save with automation

0

No new posts save images according to abc

1



* Login  



Powered by phpBB3 © phpBB Group