What if there is a black edge in the screenshot of Empire cms?
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!