Sign inSign up

vorteil/image-watermark

By vorteil

Updated almost 5 years ago

Image
0

1.5K

vorteil/image-watermark repository overview

Watermark

Direktiv

An example workflow of using the container in a workflow on Direktiv.

id: watermark
functions:
- id: mywatermark
  image: vorteil/image-watermark:v2
states:
- id: hello
  type: action
  action:
    function: mywatermark
    input: 
      text: "Hello"
      img: "base64image=="
      color: "#FFFFFFC0"

The 'img' value has to be a base64 encoded image (png/jpg).

Output

If the request is successful, the response will be wrapped inside of a JSON object, within the return field. In the event that the response body is not in JSON format, the data will be base64 encoded and stored as the value of the return field.

{
    "return": {
        ...
    }
}

Error

In the case that an error is encountered, it will present in the following format:

{
    "errorCode": "com.img.watermark.error",
    "errorMsg": "Something went wrong"
}

Tag summary

Content type

Image

Digest

Size

2.5 MB

Last updated

almost 5 years ago

docker pull vorteil/image-watermark