Last active
May 6, 2016 18:09
-
-
Save blitline-dev/7573157 to your computer and use it in GitHub Desktop.
Script runner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"application_id":"YOUR_APP_ID", | |
"src":"https://s3.amazonaws.com/img.blitline/samples/beijing.jpg", | |
"functions":[ | |
{ | |
"name":"script", | |
"params":{ | |
"bash_string":"convert input.png -sigmoidal-contrast 15x30% contrast.jpg \nconvert contrast.jpg -sparse-color Barycentric '0,0 black 0,%h white' -function polynomial 4,-4,1 blurmap.jpg\nconvert contrast.jpg blurmap.jpg -compose Blur -set option:compose:args 10 -composite output.png" | |
}, | |
"save":{ | |
"extension":".png", | |
"image_identifier":"MY_CLIENT_ID" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment