Re: [Gimp-developer] marking a document/image as dirty/changed in a plugin

2019-11-11 Thread Dan Hitt via gimp-developer-list
On Mon, Nov 11, 2019 at 1:40 AM Ofnuts wrote: > On 11/10/19 5:23 AM, Dan Hitt via gimp-developer-list wrote: > > The other hole is that i find that so far i cannot read and write a > > pixel. > > > From my experiments: > > - start an "undo group": this marks the image "dirty" > > - attach an

Re: [Gimp-developer] marking a document/image as dirty/changed in a plugin

2019-11-11 Thread Ofnuts
On 11/10/19 5:23 AM, Dan Hitt via gimp-developer-list wrote: The other hole is that i find that so far i cannot read and write a pixel. From my experiments: - start an "undo group": this marks the image "dirty" - attach an "undoable" parasite - end the undo group and exit At that point if

Re: [Gimp-developer] marking a document/image as dirty/changed in a plugin

2019-11-09 Thread Liam R E Quin
On Sat, 2019-11-09 at 20:23 -0800, Dan Hitt wrote: > . So to properly do this simple operation of reading and > writing > a pixel, one should go through the gegl interface. You could look at the source for existing plugins, especially in 2.10.14, for examples. > (And glad you get to mess

Re: [Gimp-developer] marking a document/image as dirty/changed in a plugin

2019-11-09 Thread Dan Hitt via gimp-developer-list
On Fri, Nov 8, 2019 at 7:53 PM Liam R E Quin wrote: > On Fri, 2019-11-08 at 18:40 -0800, Dan Hitt via gimp-developer-list > wrote: > > But i don't > > see > > how you can mark an image as dirty. > > Write some data to the image? > > E.g. read a pixel and write it back again? > > > I'm using

Re: [Gimp-developer] marking a document/image as dirty/changed in a plugin

2019-11-08 Thread Liam R E Quin
On Fri, 2019-11-08 at 18:40 -0800, Dan Hitt via gimp-developer-list wrote: > But i don't > see > how you can mark an image as dirty. Write some data to the image? E.g. read a pixel and write it back again? > I'm using gimp 2.10.8 on debian 10. You might want to update to 2.10.14. the current

[Gimp-developer] marking a document/image as dirty/changed in a plugin

2019-11-08 Thread Dan Hitt via gimp-developer-list
I'm writing a plugin that adds some metadata to an image (gimp document). The metadata is added as a "parasite". I can see in the api, libgimp/gimpimage_pdb.h, how you can test if an image is dirty, via gimp_image_is_dirty(image_id). I can also see how you can mark an image as clean