The Conduit

Last updated:2021-04-28 11:03:38

Image Processing


Pipeline

Interface

None

Description

Image Processing API of Kingsoft Cloud KS3 supports the multi-processing through the pipeline to meet the need of complex application environment. The pipeline connects different processes with |.

Permission

You need the GetObject permission for this operation. If the object you request does not exist, you may have the following two errors returned:

  • If you have the ListBucket permission on the bucket of this object, the status code 404 error will be returned.
  • If you don’t have the ListBucket permission on the bucket of this object, the status code 403 error will be returned.

Sample request

Mixed watermark means you can perform the scaling and two watermarking operations on the same image.

  • Style 1
    • The width is 200 px, and the height is 150 px
  • Style 2
  • Style 3

Request code

Notes: The interface format does not contain any space and line break. The following content has been formatted for easy reading.

https://ks3-cn-beijing.ksyun.com/ks3/image_deal/[email protected]@
	tag=imgBaseOp   
	&mode=0   
    &h=160   
    &w=220   
    |tag=imgWaterMark   
    &type=1   
    &dissolve=65   
    &gravity=NorthEast   
    &image=aHR0cDovL2tzMy5rc3l1bi5jb20vY3NzL2ltZy9maXhlZF9rc2NfbG9nby5wbmc=   
    &dy=10   
    &dx=10
    |tag=imgWaterMark   
    &type=1   
    &dissolve=65   
    &gravity=SouthEast   
    &image=aHR0cDovL2tzMy5rc3l1bi5jb20vY3NzL2ltZy9maXhlZF9rc2NfbG9nby5wbmc=   
    &dy=10   
    &dx=10   

Sample response

Pipeline file

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

  • Insufficient
  • Outdated
  • Unclear or awkward
  • Redundant or clumsy
  • Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈