Export layers as separate images in GIMP

Perhaps for some it is not a very common situation, perhaps for others it is, the truth is that more than one person has needed export all layers of a project in Gimp as separate images, and has encountered a couple of obstacles.

Gimp is one of the elementary programs on our computer for beginners and experienced image editing users. It is a powerful tool with endless functions, but apparently, we always need more.

Working in layers within Gimp, is day to day, and it is to be expected that eventually there will be a project in which you need to save each layer separately as an image. If it has not happened to you, it will happen to you, so it is never too much that you have the script at hand sg-save-all-layers.scm for when the time comes.

When installing the script, you will be able to observe this new Gimp function within the «Archive», Just below the«Save a copy».


A window will appear in which the renaming pattern for all layers can be modified. The name will be assigned according to the position of each layer in the project. In addition, you can add the extension to which you want to export the images of each layer, being all the extensions with which the projects are exported in GIMP.

Script Layers

The default script stores all the images in the same address where the Gimp project is located.


You can download the script here: sg-save-all-layers.scm. Once the script is downloaded, just locate it at the Gimp Scripts address: /usr/share/gimp/2.0/scripts/.

And when you open Gimp again, that's it. You will now have the function of «Save Layers»Within the project.

A very useful function in some cases where surely this little friend can help you without any problems.

The content of the article adheres to our principles of editorial ethics. To report an error click here!.

12 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *



  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   eliotime3000 said

    Good idea. Until now, it had not occurred to me to do such a procedure.

  2.   Thu said

    It worked for me using the ~ / .gimp-2.8 / scripts folder, because in the /usr/share/gimp/2.0/scripts/ folder it marked an error and did not load the script

  3.   Raven said

    Thanks Gerark and Gio.

  4.   Raven said

    Thanks a lot. I was looking for this feature. Thanks Gerak and Gio

  5.   Jhamil moya said

    You are a savior… ..thank you very much, I was looking for exactly this!

  6.   Anonymous said

    it does not work for me in windows it seems that it saves them but when I review no saved image appears

  7.   Gonzalo said

    This works in windows? It doesn't even give a save path !!

    1.    Furrist said

      You click OK, load, and you can't find the images?
      If so, they may be stored in C: \ Users \ Your_name
      I use win8 and it is saved there: v
      If they are not, go to C: and with the search engine type the name you gave to the sequence, they should appear; then right click and Open file location.
      (I'm sorry if it's too late: 'v)

  8.   yo said

    good guy

  9.   Igor said

    Thank you very much, you saved the night: D. A while ago I was trying to install an extension that serves the same purpose: https://github.com/khalim19/gimp-plugin-export-layers But since I had problems with the python I looked for another solution and Cha, Chan !, I found this super way and fast script.

  10.   Isaiah said

    This article has been "saving my life" for a couple of years now.

    There is a slightly newer version of the script on github in case someone wants to try it, it has worked well for me.