Add watermark of image format on the picture file.
Use Method: each wmi triggers actions of adding watermark and then set each parameter value with parameters begun with w in the following list; if the first one is not a control character of parameters in the list or there is no subsequent parameters, actual actions of adding watermark will be triggered; optional parameters not set will use a default value and each parameter will be initialized as the default value after watermarking.
Actions mode | Instruction meaning | Parameter format | Parameter description | Result description |
---|---|---|---|---|
Start image watermark actions | Watermark image | wmi | Required parameters A group of commands is corresponding to a watermark image |
Start to add one watermark image action processing |
Assign watermark image file key | Watermark key | wk/str64 | Required parameters str64=base64(bucket:object) |
Watermark image local key; read watermark image uploaded to public cloud |
Assign watermark position | Watermark position | wp/n | Optional parameters N position of watermark in the image value range[1,9], default 1 |
Position correspondence, range in turn by row from top left corner to bottom right corner 1 2 3 4 5 6 7 8 9 |
Assign watermark position x offset | Watermark dx |
wdx/n | Optional parameters N horizontal pixel offset of watermark relative default position value range[-9999, 9999], default 0 |
Watermark horizontal pixel offset relative to default position is till image boundary |
Assign watermark position y offset | Watermark dy |
wdy/n | Optional parameters N vertical pixel offset of watermark relative default position value range[-9999, 9999], default 0 |
Watermark vertical pixel offset relative to default position is till image boundary |
Watermark image transparency | Watermark dissolve |
wd/n | Optional parameters N watermark image transparency value range[0, 100], default 100 |
0 is fully transparent watermark, meaning no watermark |
Watermark image zooming scale | Watermark scale |
ws/n | Optional parameters N area ration of watermark image to original image value range[0, 1000], default 30 |
Area ration of watermark image to original image (0.X%) |
Example:
Add logo.png as an image watermark file to example.png and set the zooming scale of watermark image as 100: