2 Replies Latest reply on Mar 10, 2009 12:03 PM by Albert S.

    Watermark Image

    Albert S. Level 3
      Hi,

      When watermarking an image I am using a .png file. Is there a way to get rid of the tiny black outline that is added to the watermark. If I use .gif the outline is not there but the image is very pixel'e. So I prefer to use png but how do I get rid of that black outline?

      Any thoughts?

      Thanks
        • 1. Re: Watermark Image
          Albert S. Level 3
          Hi,
          I did some testing on this issue and realized it's just the way php puts it all together that it will be hard to get rid of the outline. So I wondered if I could change the color of the outline.

          I located what I believe is the code for the creation of the merged files in KT_Image.class.php but when I change any of the code nothing changes in the final output.

          I changed every instance to support a new transparent color. These php commands are used in the functions watermark_gd and getImageCreate

          watermark_gd
          $back = imagecolorallocate($destImage, 0, 0, 0);
          imagefilledrectangle($destImage, 0, 0, $destWidth-1, $destHeight-1, $back);
          $transparent = imagecolorallocate($destImage, 0, 0, 0);

          getImageCreate
          imagecolorallocate($image, 255, 0, 0);
          $transparent = imagecolorallocate($image, 255, 0, 0);

          But it has not changed a thing. What could I be missing?
          • 2. Re: Watermark Image
            Albert S. Level 3
            The color I am trying to use is 204, 204, 204.