Qiniu CDN provides automatic image slimming function has been officially launched, the created domain name is “off” by default. To quickly enable the image slimming function for your domain name, perform the following steps:

  • The Image Weight function is enabled when creating a domain name
  • Enable the image thin function for a created domain name

The Image Weight function is enabled when creating a domain name

  1. Login seven cattle developer platform
  1. Select converged CDN and then Select New Accelerated domain name
  1. On the create Accelerated domain page that appears, find the image auto-slim bar
  1. Select Turn on and configure the range to use the image auto-weight function

Picture auto slimming offers three ranges:

  • Default: All JPG and PNG files under this domain are automatically slimmed down
  • Specify directory: the domain name in the path of JPG and PNG will automatically thin, support configuration of multiple directories, to; No separate. Such as: / a; /b
  • Regular expression: JPG and PNG files that match the matching rule are automatically reduced. Multiple regular expressions can be configured. No separate. Such as:. * \. PNG; .*\jpg

5. After all the configurations are complete, select Create. The domain name is created successfully

6. On the domain name Summary page, you can see that the image slimming function is enabled

7. If you want to turn off the automatic picture slimming function, select the modification on the right side of the automatic picture slimming bar to turn it off.

Enable the image thin function for a created domain name

A:

  1. Login seven cattle developer platform
  1. Select the converged CDN and select a specific accelerated domain name, for example, test.qbox.net
  1. In the domain name Overview page, you can see that the status of the function is off
  1. Select the Settings on the right of the picture auto slim bar to enter the configuration page
  1. On the configuration page, select enable and configure the range to use the image auto-weight function
  1. Select Save changes to enable automatic image slimming
  1. On the domain name Summary page, you can see that the image slimming function is enabled

Method 2:

  1. Log in the Qiniu developer Platform,
  1. Select the Resources home page, and then select Image Slim
  1. In the image slimming page, find the usage bar and select Automatic call
  1. In the domain name list, find the domain name for which you want to enable auto image thinning and select Enable
  2. The image on the domain name Overview page automatically shrinks
  3. Select the Settings on the right of the picture auto slim bar to enter the configuration page
  4. On the configuration page, select enable and configure the range to use the image auto-weight function
  5. Select Save changes to enable automatic image slimming
  6. On the domain name Summary page, you can see that the image slimming function is enabled

More pictures slimming function description please refer to: developer.qiniu.com/dora/api/im…