Index number for video thumbs

Archived from the Transloadit support forum. Originally posted on July 6, 2011; details may be outdated, see our docs for current behavior. Original thread

Hi,

I’m using the “/video/thumbs” robot to create a number of thumbnails. Those thumbnails then get stored on our S3 server.
Is it possible to name them with their real filename, suffixed with an index number?

eg:
thumb_01.jpg
thumb_02.jpg
thumb_03.jpg

For the moment I’m using /${file.id}/${file.urlName} to store them but I would like them to be stored in the same folder instead of a different folder for each file.

Hi,

I managed to solve it this way:

${file.basename}_${file.meta.thumb_index}.${file.ext}

${file.basename}_${file.meta.thumb_index}.${file.ext}

Yup, that’s what we would have probably proposed as well. Let me know if you need more help with this or something else!