All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

Use an image style

Last updated:2021-11-02 17:53:48

KS3 enables you to process images by using native styles. To use a native image style, use @base@ to connect the source image URL and the style name. You can also use an image style by using the following string: Source image URL@style@Style name.

Examples

Source image

Take a sample image in the test bucket as an example. You can access this image by using the following URL:

https://ks3-resources.ks3-cn-beijing.ksyuncs.com/suiyi.jpg

Watermark

You can add the text watermark Kingsoft Cloud to the preceding image. Two options are available to access the watermarked image:

Option 1:
https://ks3-resources.ks3-cn-beijing.ksyuncs.com/suiyi.jpg@base@tag=imgScale&q=100&format=PNG|tag=imgWaterMark&type=2&dissolve=65&gravity=NorthWest&text=6YeR5bGx5LqR&font=6buR5L2T&fill=I2ZmMA==&fontsize=500&dy=10&dx=10

Option 2:
https://ks3-resources.ks3-cn-beijing.ksyuncs.com/suiyi.jpg@style@shuiyin

Downsizing

Downsize the image to the width of 100 pixels and the height of 100 pixels and perform centered cropping. Two options are available to access the thumbnail:

Option 1:
https://ks3-resources.ks3-cn-beijing.ksyuncs.com/suiyi.jpg@style@scale

Option 2:
https://ks3-resources.ks3-cn-beijing.ksyuncs.com/suiyi.jpg@base@tag=imgScale&m=1&c=1&q=85&w=100&h=100

On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback