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.

- 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 '' and make executable if you're on linux.

AttachmentSize KB
GIMP Version: 
Code License: 


All I am trying to do is get the individual layers saved and it's not working for me. So must be doing something wrong with the plug-in. These are the steps I take on more time.

1. Open image as layers. (That gives me 3 channels)
2. Click File - Export Layers
3. Save

All that happens is it saves the image as background.

Is this what is supposed to happen?

Channels are not layers. How many layers does your image have? (hint: press 'CTRL+L' to raise the layers dialog).

Perhaps you need to back up a bit and explain exactly what it is you're trying to do. It sounds like you are trying to save RGB channels to individual files. If so:

1. File ->Open (not Open as Layers)
2. Color->Components->Decompose (select RGB and leave 'decompose to layers' checked)
3. A new image will be created with three layers, select this image.
4. File->Export Layers->as PNG

If not, explain what you're after. You also might consider posting on the forum on this site instead of here - I doubt very many people are subscribed to comments on this plug-in.

Also - open as layers is meant to add an image to an already open one - as a new layer. It does not take a flat image and magically create new layers ;)

It IS the channels I am trying to save. You have given me the information I need. Sorry to be so slow.

No problem. If you'd to buy me a cup of coffee, my pp address is cr33dog AT gmail DOT com :) If not, no worries - most if not all of my plugins are really just for fun or (my own) learning.

I downloaded and installed python, downloaded which turned out to be a txt file. I renamed it to give the .py extension. Now what do I do? I can't find a folder for plugins. I am dyslexic and have trouble with reading complicated instructions. If you could do a step by step (baby steps) it would be very helpful.

Thank you for your time.

Do you have the menu item Filters->Python-Fu?

If so, open GIMP preferences.
Select Folders->Plug-ins, note the plug-in directories.
In your OS, browse to the plug-in folder in your home directory (from above step).
Place .py file inside.
Restart GIMP.

If not, you need python support. I found this tutorial (I assume you're using Windows):


I am working with Windows Vista 64 bit. I have already tried the tutorial. I downloaded the only version of pycairo I could find. It is 1.8.6 when I try to install it I get a message that "Python version 2.6 which required, which was not found in the registry. I had Python 2.6.5 installed. pycairo was made for 2.6.4
So I uninstalled Python 2.6.5 and installed the older version. I still get the same message. Is there a newer version of pycairo?

You should probably keep using Python 2.6.5.

Try using the older version of pycairo though:

(from the link found on

First and foremost, is Python showing up on your GIMP menu?

Windows OS, (Vista and Win 7), the plug-ins folder is found in Users/Username/.gimp-2.6/plug-ins
Win XP - it's found under Documents and Settings/Username/.gimp-2.6/plug-ins
Linux (Ubuntu) - home/username/.gimp-2.6/plug-ins

If you have installed the .py file in the appropriate folder, as indicated above, and Python is showing on your GIMP menu, all you need to do is restart GIMP.

I got Python working with Gimp now. I put the plug-in in the plug-in folder. So how do I use it? I opened my image with "open as layers". How do I select the layer I want to save?


Subscribe to Comments for "Export Layers as PNG"