image-watermark

command module
v0.0.0-...-8835833 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README


{ "image": "direktiv/watermark", "desc": "Generates a basic watermark." }

Watermark

Direktiv

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

id: watermark
functions:
- id: mywatermark
  image: direktiv/image-watermark:v1
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"
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL