Home >Backend Development >PHP Tutorial >Problem with adding watermark in php, watermark background cannot be removed_PHP tutorial
Question
Problem with adding watermark in php, watermark background cannot be removed
Solution
How can I make the effect of adding watermark to gif the same as that of adding watermark to jpg, without the white background behind
Attachment: Your user group cannot download or view attachments
Reference answer
JPG does not support transparency effects. Thanks.
Reference answer
This way you can achieve the same effect as a jpg picture! 3q, answer
Reference answer
Aren’t these three pictures of yours all gifs? Where is the jpg
Reference answer
Oh~~The first picture. Is it necessary to convert it to gif first and then to jpg?
Reference answer
Just png
Reference answer
You can specify a transparent color for GIF
Reference answer
If the watermarked picture is in jpg format, the effect will be normal, such as the effect of the first picture
If the watermarked picture is in gif format, the effect will be like the effect of the second and third pictures
Set a transparent color for gif, which is the effect of the third picture!
Note: The watermark image format is png, and the background has been removed
Reference answer
Yes, use PNG format
Reference answer
Yes, watermark images in png format work better