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 448417 - Foreground Select Tool zoom problems with image pyramid
Foreground Select Tool zoom problems with image pyramid
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
git master
Other All
: Normal major
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
: 452863 455961 460003 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-06-17 08:34 UTC by Martin Nordholts
Modified: 2007-10-08 19:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Foreground-Extraction-Tool-Mask-Fix.patch (7.47 KB, patch)
2007-06-21 19:27 UTC, Martin Nordholts
committed Details | Review

Description Martin Nordholts 2007-06-17 08:34:57 UTC
Thanks to Pontus Enhager for reporting this to the mailing list.

1. Open an image and select the Foreground Select Tool.
2. Select an area
3. Zoom out to 50%

Result: The mask is rendered at 100% zoom.
Comment 1 Sven Neumann 2007-06-18 10:52:04 UTC
We can either deal with this in gimp_display_shell_render_mask() or also use an image pyramid for the mask. I am not sure what's better.

It might also make sense to use an image pyramid for the selection, but that's a different issue.
Comment 2 Sven Neumann 2007-06-18 11:07:58 UTC
Probably the best we can do is to generalize the image pyramid code and move some parts of it to app/base. It should then be possible to turn any tile-manager into an image pyramid with only little effort.
Comment 3 Martin Nordholts 2007-06-18 18:50:07 UTC
I really like the idea of generalized pyramid code and the use of pyramids for all large TileManagers.

There are many things that are good about making the change, among them that the masks and selections will be rendered accurately in "sync" with the image since they will use the same interpolation algorithm, and that the necessary swapping of tiles will be decreased even more for some situations with large images.

But do we want to postpone 2.4 even more to be able to implement that in a consistent and stable way? Wouldn't implementing it be like duplicating (GEGL-)code in a sense?
Comment 4 Sven Neumann 2007-06-18 19:18:40 UTC
For now we just need to fix this particular bug and nothing more.
Comment 5 Martin Nordholts 2007-06-21 19:27:39 UTC
Created attachment 90412 [details] [review]
Foreground-Extraction-Tool-Mask-Fix.patch

Proposed fix by refactoring the render_image_init_info* functions.
Comment 6 Martin Nordholts 2007-06-21 20:30:52 UTC
Fixed in trunk, revision 22822.

2007-06-21  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-render.c (gimp_display_shell_render):
	Refactored the two helper functions render_image_init_info(_full)?
	and always use the shell base scale for the shell->mask. Fixes
	bug #448417.
Comment 7 Michael Schumacher 2007-07-01 17:23:58 UTC
*** Bug 452863 has been marked as a duplicate of this bug. ***
Comment 8 Sven Neumann 2007-07-11 16:19:07 UTC
*** Bug 455961 has been marked as a duplicate of this bug. ***
Comment 9 Sven Neumann 2007-07-24 19:45:56 UTC
*** Bug 460003 has been marked as a duplicate of this bug. ***
Comment 10 Martin Nordholts 2007-10-08 17:24:06 UTC
Reopening as this bug has returned.
Comment 11 Sven Neumann 2007-10-08 19:54:41 UTC
2007-10-08  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.[ch]: removed level from
	GimpDisplayShell struct.

	* app/display/gimpdisplayshell-render.c: fixed rendering of the mask.
	Closes bug #448417 again.