Hello, I am writing a GIMP script which convert a XCF file to a BMP 24 bits file (merging all the layers). The problem is : the output file is a BMP 32 bits (I want a BMP 24 bits).
I found a procedure which give me the type : gimp-drawable-type It gives 0 when 24 bits and 1 when 32 bits. But I don't found a procedure which set the type... Can you tell me how I can save my BMP into 24 bits file? Thank you a lot. --- This is my script : (define (xcf-bmp input output ) (let* ( (image (car (gimp-xcf-load RUN-NONINTERACTIVE input input ) ) ) (drawable (car (gimp-image-get-active-drawable image ) ) ) ) (gimp-image-merge-visible-layers image 0 ) (let* ( (newdrawable (car (gimp-image-get-active-drawable image ) ) ) ) (file-bmp-save RUN-NONINTERACTIVE image newdrawable output output ) ) ) ) _______________________________________________ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user