RSS/Atom feed Twitter
Site is read-only, email is disabled

Base type of a wmf image

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Base type of a wmf image Magnus Hellström 25 Sep 12:51
  Base type of a wmf image Sven Neumann 25 Sep 20:58
Magnus Hellström
2006-09-25 12:51:54 UTC (over 18 years ago)

Base type of a wmf image

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

Sven Neumann
2006-09-25 20:58:09 UTC (over 18 years ago)

Base type of a wmf image

Hi,

On Mon, 2006-09-25 at 12:51 +0200, Magnus Hellström wrote:

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?

The WMF loader probably converts everything to RGB then. You could try to use "identify" instead. This tool comes with ImageMagick.

Sven