GNOME Bugzilla – Bug 105577
gimp_bilinear_rgba () incorrect alpha handling
Last modified: 2004-12-22 21:47:04 UTC
The gimp_bilinear_rgba () function (libgimpcolor/gimpbilinear.c) handles alpha channel as if Gimp used premultiplied alpha. But all Gimp core and almost all plugins use separated alpha. I'm attaching a patch against CVS HEAD changing alpha handling from premultiplied to separated. This patch itself seems to fix alpha problems in two plug-ins using gimp_bilinear_rgba (): bug #72876 and bug #105796.
Created attachment 14203 [details] [review] Proposed patch
I'm sorry, the second plug-in is bug #105496.
IIRc, these two plug-ins are the only one that use gimp_bilinear_rgba().
Um, I lost track of this stuff a little. Do I assume correctly that the patch is still valid and should be applied?
It's valid, but already applied, see changelog: 2003-02-18 Sven Neumann <sven@gimp.org> Applied patches from David Necas <yeti@physics.muni.cz> that fix incorrect RGBA resampling in a number of plug-ins: * libgimpcolor/gimpbilinear.c (gimp_bilinear_rgba): fixes RGBA resampling in Map Object and Lighting Effects plug-ins (#72876 and #105496). It probably only remains to be closed here in bugzilla.