In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
What this article shares to you is about how to use phpcms without setting watermarks, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Phpcms does not set the watermark: first find the water folder and delete it; then find the watermark function in the "image.class.php" file; finally, set the value of the "$w_text" parameter in this function to empty.
Phpcms does not set watermark
The first step: find the statics/images/water folder and delete it; if the system cannot find the watermark image in the water folder, it will perform the second step to add a watermark in text format to the image.
Step 2: find the watermark function in the phpcms/libs/classes/image.class.php file, and set the value of the $w_text parameter in this function to empty
Function watermark ($source, $target ='', $w_pos ='', $w_img ='', $w_text ='', $w_font = 8, $w_color ='# ff0000') {$w_pos = $w_pos? $w_pos: $this- > wroompos; $w_img = $w_img? $w_img: $this- > wuploimg; if (! $this- > watermark_enable | |! $this- > check ($source)) return false If (! $target) $target = $source; $w_img = PHPCMS_PATH.$w_img; $source_info = getimagesize ($source); $source_w = $source_info [0]; $source_h = $source_info [1]
If you want to replace the watermark image designed by yourself, you only need to replace the watermark image under the statics/images/water folder for the watermark image you designed.
If you want to add a watermark in text format to the image you upload, you need to delete the statics/images/water folder and change the value of the $w_text parameter in the watermark function to the text you want.
The above is how to use phpcms without setting watermarks. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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.
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.