Python plug-in: Import multi page tiff as multi layer image for GIMP3

I have written a Python plugin to import multi-page TIFF as a multi-layer image into GIMP3. When reading a multi-page TIFF, this plugin does not ask you which page to read, but reads all pages as layers. You can read multi-page TIFF files without this plugin, but it’s worth using if you find it annoying to be asked which page to read halfway through.
ImageJ stack images saved as TIFF can be imported as multi-page TIFF with this plugin.

1 Like

Sounds great! Does it open multi-layer TIF files created by Photoshop?

Hi! Even if it doesn’t, GIMP should be able to open those by default now ( GIMP 2.99.16 Released: Wilber Week 2023 edition! - GIMP - read towards the bottom of this section)

Multi-page (multi-image) TIF and multi-layer TIF are different, but anyway, GIMP3 can now handle multi-layer TIF files. In my experiment, I saw some error messages, but GIMP3 could load multi-layer TIF.

Do you have a sample file you could share that causes that message? I’d like to take a look and try to fix it.

Here is sample.

It was made with Photoshop Elements.

1 Like

Thanks! This is because GIMP loads the image and layer metadata separate, so it “forgets” which layers are selected (thus the selected layers list is NULL, and when it tries to set them, you get that message).

Proposed fix is here: plug-ins: Load image and layer PSD metadata together (!2228) · Merge requests · GNOME / GIMP · GitLab

1 Like