Skip to content

Instantly share code, notes, and snippets.

@psbolden
Created May 30, 2017 22:37
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 psbolden/d43f37a655a865f30635b9553cd39e64 to your computer and use it in GitHub Desktop.
Save psbolden/d43f37a655a865f30635b9553cd39e64 to your computer and use it in GitHub Desktop.
Blitline Mutlistep Preprocess
{
"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