I'm using script-fu to load an image to determine the image base type.
It gives me back rgb even if the wmf image is in grayscale.

How come? Can I determine the image type in some other way?

This is the script:

(define (script-fu-wmf-type-check file)
        (gimp-message-set-handler 0) 
        (set! image (car (file-wmf-load RUN-NONINTERACTIVE file file 72 0 
0)))
        (set! image-type (car(gimp-image-base-type image))) 
        (gimp-message (number->string image-type))
)


Thanks

/Magnus
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to