Last updated：2020-08-21 18:14:28
Picture processing is the function of generating thumbnails and adding watermarks provided by Kingsoft Cloud in addition to basic service of data storage. Each Bucket supports creating 100 picture styles. For the convenience of developers, the pre-defined image processing styles can greatly shorten the length of the request URL, with better readability.
Enter the management console and select the Bucket where to create custom thumbnails.
Enter the picture processing module, and click【Create Style】.
After clicking [New Picture Style], you will enter the stage of creating the thumbnail styles. At this stage, you need to set the style name, thumbnail size, automatic rotation, center cropping, picture format, and picture quality. The width and height of the original image will be displayed on the right side of the “picture style generation” window. In the process of adjusting the style, the thumbnail effect will be displayed in real time in the effect frame. The reduced width and height are displayed via the ruler.
Style name: Later, this name will be used as an alias for the entire style.
Rules for thumbnail size:
Rotation mode: You can choose “not to set rotation”, “automatic rotation according to exif”, and “rotation according to a custom angle”.
Picture output formats: Pictures can keep their original formats, or you can choose the formats you need to save, supporting JPG, JPEG, PNG, GIF, WBMP, BMP and other formats.
Thumbnail saving: It is used to be compatible with the thumbnails of other manufacturers. If this option is selected, assuming the uploaded file’s name is picture.jpg and the picture suffix entered is _200150.jpg, then based on the set style format, a file named picture.jpg__200150.jpg will be automatically generated under the uploaded Bucket.
Note: If the original image protection function is selected, the thumbnail protection function will not work. You need to first turn off the original image protection function.
Adjust the picture quality: The size of the generated picture can be reduced. Adjusting the picture quality will affect the actual effect of the picture, so please adjust reasonably as needed.
Choose not to add a watermark, as shown below:
You can add a text watermark or a picture watermark to a picture. The customizable items are as follows:
Set the position of the watermark. You can further fine-tune them by setting the X-axis margin and Y-axis margin, which refer to the horizontal and vertical distances between the watermark and the edges of the picture, respectively, as shown below:
Thumbnail + Watermark: You can add a watermark on the basis of thumbnails of pictures. The processing order of thumbnail and watermark is to make the thumbnail first and then add the watermark.
Did you find the above information helpful?
Please give us your feedback.
Thank you for your feedback.