Home > CMS Tutorial > Empire CMS > body text

Share how to implement automatic watermarking in Empire CMS

silencement
Release: 2019-12-02 16:20:05
forward
2326 people have browsed it

Share how to implement automatic watermarking in Empire CMS

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)//图片{
Copy after login

Add below The following statement is enough:

The code is as follows:

include_once(ECMS_PATH.'e/class/gd.php');
GetMyMarkImg($file);
Copy after login

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
Copy after login

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']);
Copy after login

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!

Related labels:
source:www.word666.com/cms
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!