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

Strange Error

This discussion is connected to the gimp-developer-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.

Strange Error Pablo Yaggi 17 Dec 15:31
  Strange Error Kevin Cozens 17 Dec 21:54
Pablo Yaggi
2008-12-17 15:31:05 UTC (almost 16 years ago)

Strange Error

Working with gimp 2.6 this segment of codes

(if (= (car (gimp-drawable-is-rgb image)) FALSE) (gimp-image-convert-rgb image) )

gives me this error

Error while executing script-fu-mirror-table:

Error: Procedure execution of gimp-image-convert-rgb failed on invalid input arguments: Image 'file:///home/pablo/glam.jpg' (1) is already of type 'rgb'

Bests,
Pablo

(Martin told me my font was too small, is it right now ? )

Kevin Cozens
2008-12-17 21:54:45 UTC (almost 16 years ago)

Strange Error

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.