07-28-2022, 03:56 PM
@Ofnuts,
Please forgive my persistence.
I have a perfectly working plug-in which does everything I require.
The purpose of my last question was to find out if the code at #5 of this thread actually removes the alpha channel. It gives the appearance of removing it as shown in #3, but if I save the image, using Save or Save As, close GIMP and then reload the image it re-appears with the alpha channel. This is confirmed by looking at the channels palette. The alpha channel of my test image has a distinct appearance as it is 50% grey.
The answer to this question may well be buried in the source code of GIMP!
So this is more of an intellectual question.
Please forgive my persistence.
I have a perfectly working plug-in which does everything I require.
The purpose of my last question was to find out if the code at #5 of this thread actually removes the alpha channel. It gives the appearance of removing it as shown in #3, but if I save the image, using Save or Save As, close GIMP and then reload the image it re-appears with the alpha channel. This is confirmed by looking at the channels palette. The alpha channel of my test image has a distinct appearance as it is 50% grey.
The answer to this question may well be buried in the source code of GIMP!
So this is more of an intellectual question.