07-03-2025, 08:20 PM
When you say "RBG png image" does that mean "non-indexed image"?
In Python, get_pixel() returns a Gegl.Color object, not a plain byte array: redValue=layer.get_pixel().get_rgba().red.
The Script-fu browser doc also says that gimp-drawable-get-pixel returns a GeglColor, even if it doesn't document any way to extract data from this.
In Python, get_pixel() returns a Gegl.Color object, not a plain byte array: redValue=layer.get_pixel().get_rgba().red.
The Script-fu browser doc also says that gimp-drawable-get-pixel returns a GeglColor, even if it doesn't document any way to extract data from this.