Created
May 30, 2017 22:37
-
-
Save psbolden/d43f37a655a865f30635b9553cd39e64 to your computer and use it in GitHub Desktop.
Blitline Mutlistep Preprocess
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 id", | |
"pre_process": [ | |
{ | |
"job": { | |
"pre_process": [ | |
{ | |
"job": { | |
"pre_process": [ | |
{ | |
"job": { | |
"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":"boys_with_crop" | |
} | |
} | |
] | |
} | |
} | |
], | |
"src": "&boys_with_crop", | |
"functions": [ | |
{ | |
"name": "resize_to_fill", | |
"params": { | |
"width": 400, | |
"height": 400 | |
}, | |
"save": { | |
"image_identifier": "resized_boys_with_crop" | |
} | |
} | |
] | |
} | |
} | |
], | |
"src": "&resized_boys_with_crop", | |
"functions": [ | |
{ | |
"name": "composite", | |
"params": { | |
"src": "http://cdn.blitline.com/filters/boys.jpeg", | |
"gravity": "CenterGravity" | |
}, | |
"save": { | |
"extension": ".png", | |
"image_identifier": "maske_resized_boys_with_crop", | |
"png_quantize": true | |
} | |
} | |
] | |
} | |
} | |
], | |
"src": "&maske_resized_boys_with_crop", | |
"functions": [ | |
{ | |
"name": "resize_to_fit", | |
"params": { | |
"width": 100 | |
}, | |
"save": { | |
"image_identifier": "MY_CLIENT_ID" | |
} | |
} | |
] | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment