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.

-- 
Cheers!

Kevin.

http://www.ve3syb.ca/           |"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
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Reply via email to