In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how Imperial CMS can automatically add image watermarks. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
When uploading pictures in Imperial CMS, let the program add watermarks automatically, the principle is to let the watermarked check box of the place where the pictures are uploaded to check by default!
First, when inserting our own pictures in the text, generally speaking, 100% requires watermarking. So I automatically checked the watermark on the editor so that I didn't have to check it manually every time.
Imperial CMS automatically adds image watermarking to the most comprehensive solution 1.png
Modify method:
1. Find the file e/admin/ecmseditor/infoeditor/epage/TranImg.php
2, find
3, modify to
However, in one case, when the size of the image is very small, such as when the width or height is lower than 400px, the watermark will cover the content of the image, resulting in poor availability. Therefore, at this point, manually check the watermarked check box and uncheck it. In fact, it is best to use the program to judge the size to decide whether to add, manually remove the check box this local method is easy to forget.
Second, sometimes we can insert pictures from other people's websites in the text. But in order to operate efficiently, you can paste the picture of the picture website directly, and then check "Save Picture remotely" at the bottom of the editor, and check the check box with watermark at the same time. In this way, when saving the article, the program will automatically download → from other people's websites and upload it to → to add watermarks. This effect is the same as uploading pictures manually.
Imperial CMS automatically adds image watermarking to the most comprehensive solution 2.png
Modify method:
1. System Settings → Management data Table → Select article system or news system → management fields → news body (newstext) → modification
2, find
3, modify to
Third, there is also a watermark setting, as shown in the following figure:
Imperial CMS automatically adds image watermarking to the most comprehensive solution 3.png
There are three scenarios when you open this pop-up window, and each scene is analyzed separately:
1, click Open from the title picture. Some articles need to upload title pictures, also known as thumbnails, or header images. This kind of picture size is generally cut with PS, the original picture size is relatively small, so there is no need to add watermark. So it is better not to check the option of adding watermark by default.
2. In the first point, click upload on the editor, then click "Browse Server" again on the open pop-up window, and then open the pop-up window. We generally do not require editors to upload new images in this way, which is only suitable for selecting uploaded images.
3, when uploading column thumbnails on the column information modification page. Since it is a thumbnail, the size is also very small, and it is not suitable for automatic watermarking.
Therefore, it is best not to automatically check the watermarking option on the control that uploads the title picture. If you have to do:
1, find the file / e/admin/ecmseditor/file.php
2, find
3, modify to
The above methods should be used according to your own choice.
This is the end of this article on "how to automatically add image watermarking in Imperial CMS". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.