Updated on 2026-08-21 GMT+08:00

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.

Resizing and slimming

https://hw-image-demo.obs.ap-southeast-1.myhuaweicloud.com/example.jpg?x-image-process=image/resize,w_100,h_100/imageslim

Figure 1 Image after being resized and slimmed