phatch-dev team mailing list archive
-
phatch-dev team
-
Mailing list archive
-
Message #00901
[Bug 487435] Re: Watermark action -- Opacity Value Ignored
I noticed that the watermark image mode is set to "P" (point? is there
PIL doc for modes?). As a result the alpha channel produced was totally
wrong (squeezed horizontally). I managed to bypass/fix the issue with
following hack:
def reduce_opacity(im, opacity):
...
if opacity < 0 or opacity > 1:
return im
if im.mode == 'P':
im = im.convert('RGBA')
alpha = get_alpha(im)
alpha = ImageEnhance.Brightness(alpha).enhance(opacity)
put_alpha(im, alpha)
return im
As the algorithm works just fine with RGBA it seemed most
straightforward to handle the conversion in this stage.
--
Watermark action -- Opacity Value Ignored
https://bugs.launchpad.net/bugs/487435
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.
Status in Phatch = Photo & Batch!: Confirmed
Bug description:
On version 0.2.4-1 using the Watermark action, the opacity value is ignored.
No matter what value is entered from 0 - 100, opacity doesn't change.
References