Home  >  Article  >  CMS Tutorial  >  How to add watermark to Dreamweaver Atlas

How to add watermark to Dreamweaver Atlas

王林
王林Original
2019-11-09 10:20:512101browse

How to add watermark to Dreamweaver Atlas

1. Open dede\swfupload.php, find line 100

//WaterImg($cfg_basedir.$fileurl, 'up');

and remove the // in front of this sentence!

2. Use FTP to replace the data\mark\mark.gif image file with your watermark image file. The file name cannot be changed! Of course, you can also replace the mark.png file, but it is recommended to use GIF files, because it seems that PNG files cannot set transparency in the background!

3. Go to the background > System > Picture watermark settings:

Whether the uploaded pictures use the picture watermark function: Turn on

Whether the collected pictures use the picture watermark function: Turn on

Select the file type of the watermark: gif

Size control of the picture to add the watermark: 400*400

Note: You do not want the thumbnail to be displayed in this place The key to having a watermark is that I tested it: if you choose the default value (120*80), pictures with an original width of less than 290 will not have a watermark. If you set 400*400, pictures with an original width of less than 300 will not have a watermark. If you are interested, you can Test in detail.

Recommended tutorial: dedecms tutorial

The above is the detailed content of How to add watermark to Dreamweaver Atlas. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn