Skip to content

Instantly share code, notes, and snippets.

@blitline-dev
Created May 19, 2020 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blitline-dev/5e02a60ef16adc8ea4364ddc8ada2352 to your computer and use it in GitHub Desktop.
Save blitline-dev/5e02a60ef16adc8ea4364ddc8ada2352 to your computer and use it in GitHub Desktop.
{
"application_id": "YOUR_APP_ID",
"src": "http://cdn.blitline.com/filters/boys.jpeg",
"pre_process": [
{
"job": {
"src": {
"name": "canvas",
"height": "1200",
"width": "1600",
"color": "#ffffff00"
},
"functions": [
{
"name":"smart_diagonal_watermark",
"params":{
"text" : "Warner Bros",
"scale" : 0.9,
"forward" : true,
"dropshadow_color": "#111111"
},
"save":{
"image_identifier":"MY_CANVAS_WITH_TEXT"
}
}
]
}
}
],
"functions": [
{
"name": "watermark_tiled",
"params": {
"src": "&MY_CANVAS_WITH_TEXT",
"offset_x": -30,
"offset_y": -30,
"scale_src": 0.2,
"opacity": 0.9,
"padding": 20,
"fill": false
},
"save": {
"image_identifier": "480"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment