Skip to content

Instantly share code, notes, and snippets.

@blitline-dev
Created January 10, 2017 18:08
Show Gist options
  • Save blitline-dev/07047b85ddec1a65fa3cb9b8a57cfb5c to your computer and use it in GitHub Desktop.
Save blitline-dev/07047b85ddec1a65fa3cb9b8a57cfb5c to your computer and use it in GitHub Desktop.
base64inline.json
{
"application_id": "YOUR_APP_ID",
"src": "https://s3.amazonaws.com/img.blitline/filters/boys.jpeg",
"functions": [{
"name": "composite",
"params": {
"src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO0AAABuCAMAAAD8t2TLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAC1QTFRF////LVcpkauOZYdhrsStx9jF1uTV+//66PPn8vzy4uji7vft4O3f+P/38fPwC7dd6gAACdxJREFUeNrsXIti2yoMNYiHiSH//7kXCXD8AmTaddudta1zEht0QOhIgnSaHnnkkUceeeSRv1vszzRlv7OjL2hoUZEwTSHUNHIsoLYJ1oYBvE2tjnfu1Nw85DbNWCVAxysvgS7OgxEcR8vglfINtDJ1cxNuRaur7t1OTUfoSPtNM1GLKHqaBUk4aakBP+73plBC9XONrbP03opJWs3dG1FLoT6vVeqMtFeTBZFQkhYCbEILFS37es2Etq6W4up99dTSXUewmyvrduj8RFMaYauMNtD/8ro/sN+FdhlB2x3sEBJas5ujFZ2c/O61CGl0TKW/8E1oYfolaO0idpOVp3qdy5AuVrRzuqGy3hgG6H4J2jJHXWcmxNYGk6FGS07rXtrkp4plRzj6utklW353eA3DSzH0PnsflitXeyertiBV5FfioNyeJDTB1dSUthc4xL+z0q6n90A8gEzCoVxZYJSXH5BIsvgZtRN6w6tyBFJFq2kAeyFCmIbEah7lhn2AswEp87wrIQ0n2lLN/nSxm6+GCNf+j70GYoBjdvFMcryFZMlxM+DmCKRNdr4TIuhBtIHr35boOPTRUxxpSH/VM2a0S8eDqEG0qXnorwONftKeu1V5jhUPrWpqa3uD/0W0+fl+PHWIXfPcFkvOEQUXbe2+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sgjjzzyyCOPPMKUfCBD8O5WeN9LpMJCvJbvCX+xAKbep2Qc/ki8qFZSdlO1MNc7iQVtAQP4gJQbtOuv6Yk3XPzKntHCyC9Ay5/bjPaFeOjHXza3IOCthTblmJGQ6+ULq5zidYEWvyoRp1aYD1qAV1wX8cl4Q/wUrzWdoEttxS7oWyo0x/T9EZEOi8bXKv5UP4NWRSWjKlK8UvkSFcqXEel7RVsqsIQWpIR3vE3u0cI7vixo4893fOCdgBDaV8Qau3vH1RKHFH/zDf7TsQuTuvkBSya0cb2+1rlNlzSV6nJuhXqLeIF/t2hxY/qV0b5wJD9HChAtUGtCKvGmniEPHPMA2zeipZlMaMtlHS3OBBC2HtrNb19roP1JL5UsGbLJCble7ix5ixafQpWNME200QCmdyqOb9FuLVli7/gVsR+15FfZjcGVlS+rXoomReZFnu++QnvwUgXtb/FSf4b8bh7+MXmRy9b/CFpctP/M1GKcKvX0yCOPPPLI/0P+E2AAA7JN+/OU8bgAAAAASUVORK5CYII=",
"src_type": "inline"
},
"functions": [{
"name": "annotate",
"params": {
"text": "Seattle",
"weight": "normal",
"color": "#ffffff",
"point_size": "54",
"x": 15,
"y": 300,
"gravity": "NorthWestGravity",
"dropshadow_color": "#000000",
"dropshadow_offset": 2,
"font_family": "Verdana"
},
"functions": [{
"name": "annotate",
"params": {
"text": "Rainy",
"weight": "normal",
"point_size": "34",
"x": 15,
"y": 370,
"gravity": "NorthWestGravity",
"dropshadow_color": "#000000",
"dropshadow_offset": 2,
"font_family": "Verdana"
},
"functions": [{
"name": "annotate",
"params": {
"text": "7° C",
"point_size": "30",
"x": 125,
"y": 425,
"gravity": "NorthWestGravity",
"dropshadow_color": "#000000",
"dropshadow_offset": 2,
"font_family": "Verdana"
},
"functions": [{
"name": "composite",
"params": {
"src": "https://s3.amazonaws.com/img.blitline/clouds_100px.png",
"x": 15,
"y": 416
},
"save": {
"image_identifier": "MY_CLIENT_ID"
}
}]
}]
}]
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment