Page 1 of 1

White Edges on Watermarks

Posted: 2014-06-27T03:49:10-07:00
by iyoung
Hi all, I am using PerlMagick and ImageMagick 6.7 to add a watermark to images. From the commandline on the same server using the following command the image is watermarked correctly without any white edges.

composite -gravity southwest -dissolve 50 /esp/data/watermark.png preview.jpg test.jpg


Using the following code in Perl I get a jagged white edge: -

use Image::Magick;
my $wmarkimg = Image::Magick->new;
my $obj = Image::Magick->new;


I've spent the whole morning changing a whole range of the options on Composite and searching for anyone with a similar issue but have got no where.

Re: White Edges on Watermarks

Posted: 2014-06-27T05:52:47-07:00
by iyoung
Discovered the solution here: - ... rent-image

Code: Select all

  operator => 'Multiply',
  value    => 0.6,
  channel  => 'Alpha',

  image    => $watermark,
  gravity  => 'Center',