Pablo Yaggi wrote:
> (if (= (car (gimp-drawable-is-rgb image)) FALSE)
> (gimp-image-convert-rgb image)
> )

The above code is checking the type of a drawable and using this information 
to decide whether you need to convert an image.

If you want to convert the whole image to RGB only if it is not already in RGB 
format, you need to test the value returned by gimp-image-base-type.


Kevin.           |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172      |"Same thing we always do, Pinkutus:
                                 |  Try to assimilate the world!"
#include <disclaimer/favourite> |              -Pinkutus & the Borg
Gimp-developer mailing list

Reply via email to