1

Developed Watermark Script,but on adding water mark the image color changes.

// merge the source image and the watermark
  imagecopy($image, $watermark,  $watermark_pos_x, $watermark_pos_y, 0, 0, imagesx($watermark), imagesy($watermark));

Change Image color after Watermark.

Without Watermark Image

After Watermark Apply

Sanjuktha
  • 1,065
  • 3
  • 13
  • 26
Flexforce PRO
  • 49
  • 1
  • 1
  • 8

1 Answers1

0

Since you are already using GD functions, just apply a filter to your image:

imagefilter($img, IMG_FILTER_GRAYSCALE);

Check the documentation: http://php.net/manual/en/function.imagefilter.php

Tom Regner
  • 6,856
  • 4
  • 32
  • 47