Use an image style

Last updated:2021-09-14 16:17:55

KS3 enables you to process images by using native styles. To use a native image style, use @[email protected] to connect the source image URL and the style name. You can also use an image style by using the following string: Source image [email protected]@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-cn-beijing.ksyuncs.com/ks3-resources/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-cn-beijing.ksyuncs.com/ks3-resources/[email protected]@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-cn-beijing.ksyuncs.com/ks3-resources/[email protected]@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-cn-beijing.ksyuncs.com/ks3-resources/[email protected]@scale

Option 2:
https://ks3-cn-beijing.ksyuncs.com/ks3-resources/[email protected]@tag=imgScale&m=1&c=1&q=85&w=100&h=100

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈