Implementation of automatic watermarking in cms of sharing Empire
This article mainly introduces the implementation of sharing empire cms automatic watermarking, the article is very detailed, has a certain reference value, interested friends must read it!
The foreground editor of Empire 7.0 adds the ability to upload pictures and add watermarks!
Mine is the latest version of ecms 7.0utf-8:
Modify line 1225 of e/class/qinfofun.php
The code is as follows:
If ($type==1) / / Picture {
Add the following statement below:
The code is as follows:
Include_once (ECMS_PATH.'e/class/gd.php'); GetMyMarkImg ($file)
It is recommended to use png watermark. Specifically, modify the Imperial watermark to transparent watermark posts as follows:
Http://bbs.phome.net/ShowThread?threadid=112417&forumid=31
Recommended to learn the Imperial cms course
In "system Parameter Settings"-"Image Watermark Settings"-- "Image File"
To choose a transparent png picture, it is best to have a picture quality of 100. the watermark transparency setting is useless because the transparency has been adjusted in png!
Imperial cms7.0 adds at the following position
The code is as follows:
/ / File type $mvf=$tf. "mtfile"; if (strstr ($emod_r [$mid] ['imgf'],','. $tf.',')) / / Image {$type=1;include_once (ECMS_PATH.'e/class/gd.php'); GetMyMarkImg ($tfr ['yname']). These are all the contents of the automatic watermarking implementation of cms in the sharing empire. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!