Yesterday, 12:17 PM
Hi,
[GIMP 3.2 python API]
I'm trying to iterate over all the coordinates of an image, and create some calculated pixel values on a new layer.
I'm currently using the Gimp.Drawable.set_pixel() method, but its very slow (and supposed to be).
I'm struggling to find the right way to do this. I think there was a concept called "regions" in GIMP 2.xx. I understand I have to use a Gegl.Buffer. But from there I'm stuck
I can't find any definition, or just circular definitions, of what a Gegl buffer is, or any other concept. That's what makes things really difficult.
Does a "buffer" represent the whole drawable? And if it is, how do I extract just a tile and iterate over the pixels?
What is a "shadow buffer"?
What is a "handler"?
What is "the abyss"?
Thanks!
[GIMP 3.2 python API]
I'm trying to iterate over all the coordinates of an image, and create some calculated pixel values on a new layer.
I'm currently using the Gimp.Drawable.set_pixel() method, but its very slow (and supposed to be).
I'm struggling to find the right way to do this. I think there was a concept called "regions" in GIMP 2.xx. I understand I have to use a Gegl.Buffer. But from there I'm stuck
I can't find any definition, or just circular definitions, of what a Gegl buffer is, or any other concept. That's what makes things really difficult.
Does a "buffer" represent the whole drawable? And if it is, how do I extract just a tile and iterate over the pixels?
What is a "shadow buffer"?
What is a "handler"?
What is "the abyss"?
Thanks!


