GNOME Bugzilla – Bug 563845
redraw problem on image scale operation
Last modified: 2009-03-28 21:24:41 UTC
I wrote - quite a while ago - a script to make thumbnails, and modified it for 2.4.x. When I tried to run it in GIMP 2.6.3, it did work correctly, but the screen doesn't update as it should. When the image is scaled, the background doesn't clear, and the scaled image is shown in the upper left corner. The background isn't 'real', meaning it doesn't update when something is moved over. Difficult to put in words. An example is shown here: http://www.jcoppens.com/misc/tests/GIMP.jpg The 'hole' in the middle is where the script dialog was. Is there some extra 'cleanup' necessary in the latest versions?
Created attachment 124270 [details] The thumbnailer script which behaves different under 2.6.x This is the thumbnail script I've been using for years under 2.2.x, then adapted for 2.4.x.
Could be a duplicate of bug #555738.
I agree that the problem sounds very similar. I hadn't noticed that bug as it isn't related to Scrupt-Fu. Though I cannot seem to replicate 555738's behaviour, the attached script reliably shows the problem, maybe it helps to solve the issue. Take any image (large than 150 pixels), and apply the thumbnail script with default values (150 pixel side). John
I cannot reproduce the problem with this script.
> I cannot reproduce the problem with this script. Interesting - maybe it's possible to find the significant difference between systems? I have xorg 7.4 installed, GTK+ 2.12.9 (very nearly the version reported in the other bug) and XFCE 4.4.3. Just to be sure the same procedure is used: I tested with this image with a newly opened GIMP: http://jcoppens.com/kayak/img/a01.jpeg Ran the script, with default parameters, and got: http://www.jcoppens.com/misc/tests/GIMP1.png Note that any refresh event clears the background and makes the problem disappear (eg. change desktop, raise window, etc). John
GTK+ 2.14.4 on Windows XP. It's a different problem then, because I can reproduce the other bug.
This might be related to the problem above: If I thumbnail, using the script, to say, 800x600, this works (apart from background issues). The image just fills the window, so the scroolbars are stretched to 100% (ok). If I then press ^Z to undo, the undo works, but the scrollbars aren't updated - they remain stretched. Also: I have 'Resize window on image size change' disabled. If I enable it, behaviour is much more 'normal'. I have the impression that the problem is only there if this option is disabled (haven't tested this exhaustively). The scrollbar problem also disappears.
I can't access the screenshot you linked to.
My apologies. I detected quite a bit of bandwidth 'stealing' on the site, and enabled a filter which won't give direct access to images. I made a simple page wround the images: http://www.jcoppens.com/misc/problems.php The second section is the one last mentioned - the complete example. John
I can reproduce this. Looks like we are missing an update region somewhere...
Created attachment 130581 [details] Python Test Script Just a script to test with. Menu: Test > Resize Test There are 4 options available: Option 1: pdb.gimp_image_resize Option 2: pdb.gimp_drawable_transform_scale_default then pdb.gimp_image_resize_to_layers Option 3: pdb.gimp_layer_scale then pdb.plug_in_autocrop Option 4: pdb.gimp_image_scale Option 4 works fine, all of the others have the problems described above... Tested with Arch Linux/Fluxbox - Gimp 2.6 and SVN
*** Bug 575266 has been marked as a duplicate of this bug. ***
Clearly a dup of the bug i just fixed. *** This bug has been marked as a duplicate of 555738 ***