public
Created

Transloadit template

  • Download Gist
template.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{
"steps": {
"thumbnail": {
"robot": "/image/resize",
"use" : ":original",
"width": "50",
"height" : "50"
},
"fullsize": {
"robot": "/image/resize",
"use" : ":original",
"width": "320",
"height" : "1000"
},
"export": {
"use" : [":original","fullsize", "thumbnail"],
"robot": "/s3/store",
"key": "MY-AWS-KEY",
"secret": "MY-AWS-SECRET",
"bucket": "MY-AWS-BUCKET",
"path": "${assembly.id}/${previous_step.name}_${file.url_name}"
}
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.