Archived from the Transloadit support forum. Originally posted on January 3, 2011; details may be outdated, see our docs for current behavior. Original thread
I tried to use resize_strategy: “fit” in the make_thumbs bot, but it does not work. It uses “pad”.
{ "auth": {
"key": "REDACTED"
}, “steps”: {
"encode_hq": {
"robot": "/video/encode",
"use": ":original",
"realtime": true,
"width": 640,
"height": 480,
"resize_strategy": "fit",
"ffmpeg": {
"f": "mp4",
"b": "872k",
"vcodec": "libx264",
"ab": "128k",
"ar": "44100",
"acodec": "libfaac",
"partitions": "parti4x4+partp8x8+partb8x8",
"qcomp": "0.6",
"qmin": 10,
"qmax": 51,
"qdiff": 4
}
},
"encode_lq": {
"robot": "/video/encode",
"use": ":original",
"realtime": true,
"width": 480,
"height": 360,
"resize_strategy": "fit",
"ffmpeg": {
"f": "mp4",
"b": "512k",
"vcodec": "libx264",
"ab": "96k",
"ar": "44100",
"acodec": "libfaac",
"partitions": "parti4x4+partp8x8+partb8x8",
"qcomp": "0.6",
"qmin": 10,
"qmax": 51,
"qdiff": 4
}
},
"make_thumbs": {
"robot": "/video/thumbs",
"use": ":original",
"width": 640,
"height": 480,
"resize_strategy": "fit"
},
"store_video": {
"robot": "/s3/store",
"use": [
"encode_hq",
"encode_lq"
],
"bucket": "***",
"key": "REDACTED",
"secret": "REDACTED",
"path": "video/${file.id}.${file.ext}"
},
"store_images": {
"robot": "/s3/store",
"use": [
"make_thumbs"
],
"bucket": "***",
"key": "REDACTED",
"secret": "REDACTED",
"path": "image/${file.id}.${file.ext}"
}
}, “notify_url”: “http://castupload.com/transloadit”, “redirect_url”: “http://localhost/~matthiasjakel/transloadit.php” }