2.99.10 export as animated GIF fails if multiple layers are selected
Environment/Versions
- GIMP version: 2.99.10 commit 618e11e6
- Package: beta flatpak
- Operating System: Fedora Linux KDE spin on Wayland
Description of the bug
Exporting an image with multiple layers as animated GIF was failing for me. After clicking [Export] in the Export Image as GIF dialog I would get a busy cursor for a few seconds, then the Export dialog would reappear, with behind it an alert "GIF format does not support multiple layers". When I tried to reproduce I couldn't, until I realized I had multiple layers selected in the Layers dialog. With only one layer selected, animated GIF export works fine.
Reproduction
Is the bug reproducible? always
Reproduction steps:
- Create xcf with two layers. I've attached a simple one. gimp_2_99_GIF_animation.xcf
- Select both in the Layers dialog
- File > Export As... test.gif, click [Export]
- In Export Image as GIF, choose As Animation, click [Export]
Expected result:
GIF export works regardless of what layers are selected (or change the error message to indicate the problem is multiple selected layers).
Actual result:
No .gif file is created, the Export file chooser dialog reappears, a GIMP Message appears behind the Export dialog saying
GIMP Message
Saving '/path/to/file.gif' failed:
GIF format does not support multiple layers.
The workaround is to only have one layer selected (active) in the Layers dialog when you export as animated GIF.
Additional information
There was no output in the terminal where I started the flatpak.
When I restarted GIMP 2.99, it warned about unsaved backup files and restored several versions of my image, but I'm not sure the failed Export as... created these.