In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail what to do when there is a black edge in the cms screenshot of the Empire. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The reason for the black edge in the screenshot:
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.
The solution is as follows:
Change the scale according to the height to the scale according to the width, and then adjust it higher than the part.
Modify method:
1. Open e/class/gd.php
2. Find the code
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;}
Modified to:
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 image, 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
On the Empire cms screenshot how to share the black edge how to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it 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.