The image service is accessed by GET request of standard HTTP and all processing parameters are also in the QueryString of URL.
1.Users request for image processing interface
(a) Old API: connect "?img/processing parameters" after the original file address
(b) New API: connect "?x-oss-process=img/processing parameters" after the original file address
2.Request for original image
(a) File direct download mode
(b) Image processing parameter mode
3.Image processing actions support sequential queue
Connect image processing instructions as a processing queue in sequence and segment each task name and ancillary parameter with "/"; then background will execute them in sequence.
Original image address: http://downloads.s3.cn-north-1.jdcloud-oss.com/lena.jpg
Processing mode: scale in turn and crop in the center
Resultant address of relative image processing:
4.In the processing queue, sequential execution will affect final results.
5.Upper limit of the maximum number of processing actions of a single request <=100; repetitive operation is accumulated.
Scale s and center crop cc are recorded as two actions.
6.Total length of processing parameters cannot exceed 1024 bytes
The part of processing parameters includes img/s/200/300/cc/200/260
Image processing can save user's image processing actions and parameters as another name (e.g. Stylename), namely style. After using the style function, a same effect can be archived only with a very short URL to replace the original series of actions.
(a) Old API
(b) New API
Image processing includes the following keywords imgalias,img,imginfo,imgexif,x-oss-process=imgalias,x-oss-process=img,x-oss-process=imginfo,x-oss-process=imgexif
Under circumstances where the parameter image processing parameter is legal, only one of the above keywords can appear
imgalias, img, x-oss-process=imgalias, x-oss-process=img parameter must be followed by a specific parameter
KV of RequestQuery has no specified sequence
RequestQuery case sensitivity (KV has case sensitivity)
s3.cn-north-1.jdcloud-oss.com/bucket/key.jpg? Imgalias/style (access artwork normally)