12-31-2022, 03:41 PM
See gimp_image_undo_freeze(image) & gimp_image_undo_thaw(image) if you play directly with the image, and gimp_image_undo_disable(image) if you start by duplicating the image or work on temporary images. Recent Gimp also has gimp_image_freeze_{layers|channels|paths}(image) calls to prevent updates to the previews in the layers, channels and paths lists.
If you save to PNG your problem could be the PNG export which is slow if you use the high compression factors. Using a low compression can make this much faster while not making much change to the size of the result.
If you save to PNG your problem could be the PNG export which is slow if you use the high compression factors. Using a low compression can make this much faster while not making much change to the size of the result.