Replacing
imagecopymerge($im, $wm, $dest_x, $dest_y, 0, 0, $wm_x, $wm_y, $percentage)
with
imagecopy($im, $wm, $dest_x, $dest_y, 0, 0, $wm_x, $wm_y)
in _watermark_process() function allows to use PNG-24 watermarks with advanced transparency.
Replacing
imagecopymerge($im, $wm, $dest_x, $dest_y, 0, 0, $wm_x, $wm_y, $percentage)
with
imagecopy($im, $wm, $dest_x, $dest_y, 0, 0, $wm_x, $wm_y)
in _watermark_process() function allows to use PNG-24 watermarks with advanced transparency.
Comments
Comment #1
enky commentedthanks Nilard, it works, cool,
Comment #2
kbahey commentedNilard and enky4u
Can you test that this is backward compatible with PNG- ?
if it is i will include this patch in the base module.
Comment #3
nilard commentedYes, it's compatible to PNG-8.
Take a look at the comments for http://php.net/imagecopymerge
Comment #4
kbahey commentedApplied to 4.7 and HEAD.
Comment #5
nilard commentedDon't forget that 'Percentage' option (for alpha blending) in admin/settings/image -> Watermark is obsolete now.
Comment #6
kbahey commentedIt is already removed by that fix, since it has no meaning anymore.
Comment #7
(not verified) commented