Last active
August 14, 2017 20:24
-
-
Save psbolden/300b30cd1103e76f44981453f1ce69ce to your computer and use it in GitHub Desktop.
blitline convert / color matrix 2
This file contains 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":"yourappid", | |
"src":"http://cdn.blitline.com/filters/boys.jpeg", | |
"functions":[ | |
{ | |
"name":"convert_command", | |
"params":{ | |
"-color-matrix" : ".6 0.3 -0.3 0 47 -0 .9 .2 0 -37 .2 -.1 .4 0 -7.5 0 0 0 1 0" | |
}, | |
"save":{ | |
"image_identifier":"some_id" | |
} | |
} | |
] | |
} | |
"name":"script", | |
"params":{ | |
"bash_string":"convert input.png -color-matrix ' 1.5 0.0 0.0 0.0, 0.0, -0.157\n 0.0 1.5 0.0 0.0, 0.0, -0.157\n 0.0 0.0 1.5 0.0, 0.0, -0.157\n 0.0 0.0 0.0 1.0, 0.0, 0.0\n 0.0 0.0 0.0 0.0, 1.0, 0.0\n 0.0 0.0 0.0 0.0, 0.0, 1.0' output.jpg" | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment