Exporting layers in GIMP file to single pdf file

[Update: there is a nice working plugin that does the trick, see here]

In GIMP exporting multiple layers to one pdf file is surprisingly difficult. I found two solution, both require additional software besides GIMP, but are fairly easy to implement. One solution is given here. [this link doesn’t work anymore] It requires a plug-in or script to export individual layers to separate tiff files (something which perhaps surprisingly is not possible out-of-the-box in GIMP).

The before-mentioned site suggest the script “Save Layers as Individual Files”, which can be downloaded [this link doesn’t work anymore] from Panotools. Next step is to use ImageMagick to convert the tiff files into a single pdf file. Unfortunately the script throws up an error when I try to open it.

Luckily I found an even easier solution here. No need for a separate plugin, but you still need GraphicsMagick or ImageMagick.

  • Open the GIMP file with multiple layers
  • Make sure to order the layers in reverse order, page 1 must by the bottom layer, the last page the top layer
  • Save the file as a MNG animation. In the dialogue that comes up, select “save as animation”.
  • Now, open the terminal and use the command ‘convert document.mng document.pdf’ to export the mng file to a pdf file.

Credits go to Patrick’s WebLog, go there for more details.

Published by


I am a tropical forest ecologist with a focus on spatial and temporal patterns and processes at population and ecosystem level. I am furthermore very interested in issues related to conservation and sustainable use of biodiversity and natural resources under current and future climates. I have worked in the Middle East (Syria and Lebanon) and South America (Brazil) and in Eastern Africa (Kenya).

17 thoughts on “Exporting layers in GIMP file to single pdf file”

  1. One thing that may be needed sometimes is to “fit canvas to layers” beforehand. At least that’s the impression that I had, the first time I tried those scripts, there were some blank pages that weren’t really there on the layers.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s