file-gif-save2 procedure gives "RuntimeError: Operation not supported" in Python Console
GIMP version: 2.10.14
Operating System: Windows 10
Description of the bug
When attempting to use the file-gif-save2 procedure inside the Python Console (as the pdb.file_gif_save2 function), a RuntimeError is thrown with the message: Operation not supported. However, using the procedure file-gif-save does not cause this Error.
The image attempted to be saved as a gif has around 39 frames, and has been converted to indexed color.
Is the bug reproducible? Always, at least so far. I've tried on 2 gifs, one before optimizing, and one after optimizing, with various other parameters as well. (The gif without optimization was still in RGB color, but both the color error and the RuntimeError: Operation not supported errors appeared)
- Get an image with multiple layers
- Get a reference to the image in the Python console
- Attempt to export using the pdb.file_gif_save2 function.
Expected result: The function executes properly, and the image exports as a gif animation.
Actual result: A RuntimeError is thrown with the message: Operation not supported.
The script I am making I am hoping to use 100% from the command line, without having to open up any GUI from GIMP, to integrate animation making where the frames are generated by another program.
The reason for me using file-gif-save2 over file-gif-save is that the save2 variant allows you to force the override of the delay between frames, whereas the save variant does not (Assuming the documentation is accurate). As right now, the only way I could see to specify the delay between frames is to append or replace text at the end of the layer name (like "(200ms)"), I thought using the save2 variant would be easier to script what I am trying to accomplish. Optimizing (for GIF) appears to add (100ms) automatically in all the layer names; if it weren't for that, file-gif-save would work well enough with the default delay between frames.
I am not sure if the additional information above belongs in a bug report, please let me know if I should resubmit without it.