Lumo wrote:
Would it be more efficient to do the tile assembly in Indexed Colour mode instead of converting at the end?
Yes.
Lumo wrote:
I'm also removing the Alpha Channel and replacing it with white. From reading the Load-Tiles script it looks like GIMP is told to make an image without Alpha, but an Alpha channel seems to get added somewhere along the way, even when only one tile is imported.
GIMP will add an alpha channel to the image whenever there is more than one layer, even if none of the layers has an channel.
Lumo wrote:
I can convert to Indexed Colour at the end with this code, but I haven't yet worked out how to remove the Alpha channel, and it wont let me save until I do that.
When executing non-interactive batch code, it is necessary that the image format is compatible with the file format -- it would not make sense to pop up a dialog asking the user what to do.
Lumo wrote:
This doesn't work:
gimp.pdb.gimp_image_remove_channel (image,"Alpha")
There is no such PDB procedure; there is a procedure to remove the alpha channel from a layer, but not from an image. Also, as stated above, an alpha channel is mandated when there is more than one layer in an image.