![]() |
|
Display not keeping up with image changes in plug-in - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: Display not keeping up with image changes in plug-in (/Thread-Display-not-keeping-up-with-image-changes-in-plug-in) |
Display not keeping up with image changes in plug-in - nmw01223 - 01-25-2026 I am new to writing plug-ins - I've only done two. They are python on Gimp 3.0.6, running on Windows 11. This one opens an image from a file and then assigns a display as follows: Code: infile = Gio.File.new_for_path(os.path.join(img_folder, img_name))Then, the display is resized, new values are calculated: Code: img.scale(new_width, new_height)Then the image is cleaned up and the display deleted, which removes the image as well. Code: img.clean_all()It all basically works fine, the JPEGs turn up OK. But, as the images are progressively shrunk, the display doesn't keep up. Basically, it's hard to describe or show, but just pieces of the shrunken images show up. I could if necessary try to video it. But, if I run the commands one by one in the python console, no problem at all, it all looks fine. I assume this is because it is done slowly. The display is probably on a diffierent thread and isn't getting a look in when running at speed. It isn't a show stopper, the files are fine, but it looks messy. Is there a way round this, flushing all the display commands, for example,? Cannot find anything in Gimp.Display. |