After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 563845 - redraw problem on image scale operation
redraw problem on image scale operation
Status: RESOLVED DUPLICATE of bug 555738
Product: GIMP
Classification: Other
Component: General
2.6.3
Other Linux
: Normal minor
: 2.6
Assigned To: GIMP Bugs
GIMP Bugs
: 575266 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-09 13:43 UTC by John
Modified: 2009-03-28 21:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The thumbnailer script which behaves different under 2.6.x (1.23 KB, text/plain)
2008-12-09 13:46 UTC, John
Details
Python Test Script (1.79 KB, text/plain)
2009-03-13 11:49 UTC, jbaker
Details

Description John 2008-12-09 13:43:30 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?
Comment 1 John 2008-12-09 13:46:50 UTC
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.
Comment 2 Michael Schumacher 2008-12-09 14:12:56 UTC
Could be a duplicate of bug #555738.
Comment 3 John 2008-12-09 14:33:54 UTC
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
Comment 4 Michael Schumacher 2008-12-10 10:57:18 UTC
I cannot reproduce the problem with this script.
Comment 5 John 2008-12-10 15:06:41 UTC
> 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
Comment 6 Michael Schumacher 2008-12-10 16:02:02 UTC
GTK+ 2.14.4 on Windows XP. It's a different problem then, because I can reproduce the other bug.
Comment 7 John 2008-12-13 19:13:08 UTC
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.
Comment 8 Sven Neumann 2008-12-14 18:50:49 UTC
I can't access the screenshot you linked to.
Comment 9 John 2008-12-14 20:00:14 UTC
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
Comment 10 Sven Neumann 2008-12-15 23:49:45 UTC
I can reproduce this. Looks like we are missing an update region somewhere...
Comment 11 jbaker 2009-03-13 11:49:00 UTC
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
Comment 12 Sven Neumann 2009-03-22 14:35:59 UTC
*** Bug 575266 has been marked as a duplicate of this bug. ***
Comment 13 Michael Natterer 2009-03-28 21:24:41 UTC
Clearly a dup of the bug i just fixed.


*** This bug has been marked as a duplicate of 555738 ***