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 161113 - Improved positional dither code for gimp 2
Improved positional dither code for gimp 2
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
git master
Other Linux
: Normal enhancement
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2004-12-12 20:22 UTC by Adam D. Moss
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch against TIP of GIMP 2.0.x branch (10.28 KB, patch)
2004-12-12 20:23 UTC, Adam D. Moss
none Details | Review

Description Adam D. Moss 2004-12-12 20:22:08 UTC
Patch to follow.
Comment 1 Adam D. Moss 2004-12-12 20:23:17 UTC
Created attachment 34770 [details] [review]
Patch against TIP of GIMP 2.0.x branch
Comment 2 Adam D. Moss 2004-12-12 20:26:50 UTC
I've a feeling that this might apply pretty much directly to GIMP 2.2-pre. 
Maybe someone could try.  If not, I can try to forward-port it myself.

This would do as a changelog entry:
 Use a slower but much nicer technique for finding the
 two best colours to dither between when using fixed/positional
 dither methods.  Makes positional dither much less lame.
Comment 3 Sven Neumann 2004-12-12 21:17:24 UTC
The patch applies cleanly to CVS HEAD with some minor offsets.
Comment 4 Sven Neumann 2004-12-12 22:09:36 UTC
2004-12-12  Sven Neumann  <sven@gimp.org>

	Applied patch from Adam D. Moss (bug #161113):
	
	* app/core/gimpimage-convert.c: Use a slower but much nicer
	technique for finding the two best colours to dither between when
	using fixed/positional dither methods.  Makes positional dither
	much less lame.
Comment 5 Adam D. Moss 2004-12-12 22:18:10 UTC
Actually, mind backing it out again?  I mean I think it's okay, but after
hacking on the code a bit more I'm seeing some dither artifacts that I don't
trust, and I'm not sure right now whether it's something that was in that patch.
 Looking into it.
Comment 6 Adam D. Moss 2004-12-12 22:21:24 UTC
No, stupid me, the patch is fine.  I was wondering where it was getting magic
new colours from when dithering to a palette, and didn't realize that the
palette preview doesn't show all the palette colours.

Not that the new dither couldn't use some more tweaking and de-artifacting, but
it's still a big improvement I think.
Comment 7 Adam D. Moss 2004-12-12 22:22:26 UTC
Thanks, I'll post any further tweaks to a new bug.