good_evening
good_evening

Reputation: 21759

Adding .png watermark on .jpg

I have line: imagejpeg($this->image, $file, $quality);

How can add on this image watermark.png?

Upvotes: 0

Views: 2413

Answers (2)

Niet the Dark Absol
Niet the Dark Absol

Reputation: 324790

  1. Open the image (imagecreatefrompng)
  2. Copy it onto the jpg (imagecopy or other copy functions)
  3. Save the resulting jpg
  4. ?????
  5. PROFIT!

Upvotes: 3

Related Questions