You are here

Export Layers as PNG

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

File->Export Layers->as PNG

Prompts for a folder to save PNG files. Pretty straightforward. *Requires* python!

Should work with 2.4.x through 2.8.x. Will NOT work with some 2.7.x versions and the 2.8 RC1! 2.7 users should move on to current git and 2.8 RC users should upgrade to current 2.8.

Updates:
- toggle to flatten (remove transparency).
- toggle to save only visible layers
- now saves as filename + layername and special characters are removed
- toggle to remove layer offsets
- toggle to zealous crop each PNG before saving
- handle layer groups (introduced in GIMP 2.8)

NOTE: the registry added a .txt extension - you need to rename to file to just 'export_layers-0.6.py' and make executable if you're on linux.

AttachmentSize
export_layers-0.6.py.txt2.72 KB
GIMP Version: 
Code License: 

Comments

Works perfect. Just one thing, how can I make it to save the png file with transparency?

I gave the latest plugin a toggle button. Set 'Flatten Image' to 'Yes' to remove alpha/transparency or 'No' (the default) to preserve alpha/transparency.

Long time no see. Thanks for the update. :)

Good to be back. Though I don't have much time for free projects these days :( Buy hey, this update was like two lines and I probably should've added that option right from the start.

And it's nice to see we have notifications now - I often forget to log in and check for new messages.

When saving, (providing your layers have alpha channels) un-tick the save background color on the menu options.

This works perfectly in GIMP 2.6.7 on Ubuntu 9.10. Just drag to your plug-ins folder (probably ~/.gimp-2.6/plug-ins/) and then at the command line run chmod +x ~/.gimp-2.6/plug-ins/*.py and restart GIMP.

I've tried using this in Gimp 2.6.7. and no options come up. There's not even a menu entry

..and that you do not have the gimp python module installed

and install it may be a bit complex see

http://www.registry.gimp.org/node/3916

in windows may be a problem mostly how to chose/wrote the path As use / instead then \ ..or viceversa and blank spaces in the path names, quite commune in Windows( As example C/Documents and Settings/ ) would be supported ?

Nah - I just tested in XP and it's OK. Both windows and linux have a funkiness though: you have to show the location bar in the file chooser. When you are in the directory to export to, enter a period (.) in the location bar and *then* click open or press enter. But \ or / does not matter, nor do spaces in the path.

Pages

Subscribe to Comments for "Export Layers as PNG"