Updated on 2024-02-29 GMT+08:00

Slimming Images

You can edit code on OBS Console or make an API call to slim images.

Downsizing is a simplified image compression function. The output quality is 75% of the absolute quality. You do not need to configure any parameter. You can slim images just by running a command.

Operation name: imageslim

  • Only images in the JPG format support this function.
  • It is recommended that you perform this operation following the completion of other processing operations.

Example

  • If you want to resize an image to the width and height at 100 respectively, resize it first, and then slim it.

    https://obs.region.example.com/image-demo/example.jpg?x-image-process=image/resize,w_100,h_100/imageslim