In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what to do with the black edge of the Imperial cms screenshot, I believe most people do not know much about it, so share this article for your reference. I hope you will get a lot after reading this article. Let's learn about it together.
Imperial CMS generates thumbnails for images that are larger than high (horizontal slices) to produce black edges. We open a picture with black edges and draw a conclusion that Imperial CMS scales according to height for pictures, and fills them with black edges if the width is not enough.
Solution: change the scale according to the height to the width, and then adjust the part higher.
Modify method:
1. Open e/class/gd.php
2. Find the code
The code is as follows:
If ($big_width > = $max_width and $big_height > = $max_height) {if ($big_width > $big_height) {$tempx = $max_width / $ratioh;$tempy = $big_height;$srcX = ($big_width-$tempx) / 2transfersrcY = 0;}
Modify to
The code is as follows:
If ($big_width > = $max_width and $big_height > = $max_height) {if ($big_width > $big_height) {$tempy = $max_height / $ratiow;$tempx = $big_width;$srcY = ($big_height-$tempy) / 2transfersrcX = 0;}
If you use the thumbnail function to set the higher part of the intercept:
Sys_ResizeImg (original picture, thumbnail width, thumbnail height, whether to cut bentgrass picture, target file name)
/ / whether the bentgrass image is set to 1
The usual settings are as follows: background > system > system Settings > system Parameter Settings > Picture Settings > whether to intercept the excess part > Select Yes.
The above is all the contents of the Empire cms screenshot with black edges. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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: 300
*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.