Slimming Images
You can edit code on OBS Console or make an API call to slim images.
For details about how to use image styles, see Step 3: Creating an Image Style and Processing the Image.
Slimming is a simplified image compression, which generates images with an absolute quality of 75%. You do not need to configure any parameter. You can slim images just by running a command.
This operation is represented by imageslim.
- Only JPG images can be slimmed.
- It is recommended that you slim images after other image processing operations.
Example
Resize an image by setting the width and height both to 100 and then slim the resized image.
- Original image: https://hw-image-demo.obs.ap-southeast-1.myhuaweicloud.com/example.jpg

- Resize the image by setting the width and height both to 100 using the code image/resize,w_100,h_100.
- Slim the image using the code imageslim.
Resizing and slimming
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot