GNOME Bugzilla – Bug 72879
Incorrect RGBA resampling in Smudge tool
Last modified: 2009-08-15 18:40:50 UTC
If two pixels have different opacity values (alpha channel), then their colors are not averaged correctly by the Smudge tool. It looks like the RGB channels are resampled without taking the opacity into account. As a result, the (invisible) color of a transparent pixel can bleed into an opaque pixel. The resulting image is incorrect. See bug #70335 for some test images and a longer description of the problem. This problem affects many other tools and plug-ins.
The problem is caused by the wrong algorithm being used in app/paint-funcs/paint-funcs.c:blend_pixels(). This functions needs to weight the pixels by its alpha value.
Fixed in CVS (both branches): 2003-06-09 Sven Neumann <sven@gimp.org> * app/paint-funcs/paint-funcs-generic.h (blend_pixels): weight pixels by their alpha value. Fixes the smudge tool (bug #72879).
The fix is part of the stable release 1.2.5. Closing this bug.