简体   繁体   中英

Adding .png watermark on .jpg

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

How can add on this image watermark.png?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM