Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Implementation of automatic watermarking in cms of sharing Empire

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report