Empire 7.0 front-end editor adds the function of uploading pictures and adding watermarks!
Mine is the latest version of ecms 7.0 utf-8:
Modify line 1225 of e/class/qinfofun.php
The code is as follows:
if($type==1)//图片{
Add below The following statement is enough:
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. The post is:
http://bbs.phome.net/ShowThread?threadid=112417&forumid=31
Recommended to learn "Empirecms Tutorial》
In "System Parameter Settings"-"Image Watermark Settings"-"Picture File
To choose a transparent png picture, the best quality of the following picture is 100, the watermark transparency setting is useless because the transparency has already been adjusted in png!
Empire cms7.0 Add
to the following position:
//文件类型 $mvf=$tf."mtfile"; if(strstr($emod_r[$mid]['imgf'],','.$tf.','))//图片 { $type=1; include_once(ECMS_PATH.'e/class/gd.php'); GetMyMarkImg($tfr['yname']);
The above is the detailed content of Share how to implement automatic watermarking in Empire CMS. For more information, please follow other related articles on the PHP Chinese website!