Interpoloation / Assembly Variables

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

I am trying to integrate Flexpaper and Transloadit. Got it 99% finished and then ran into a stumbling block:

Flexpaper seems to require that img files be numbered 1-XXX

My transloadit path: path: “${file.original_id}/${file.meta.thumb_index}.${file.ext}”

Wondering if it would be possible to modify that index in some way to start from 1 rather than 0. eg math interpolation
path: “${file.original_id}/${file.meta.thumb_index + 1}.${file.ext}”

Hey there,

hm that’s pretty bad. We could change it, however it means backwards incompatibility for people who rely on it starting at zero. Is there no way around this using Flexpaper?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Tim,

I’ve contacted the FlexPaper people and have not heard back. I think it is possible that I could at least hack Flexpaper if nothing else.

Just thought it might be possible that I could do some math etc in my own transloadit config.

Best regards,
Gordon Isnor

Hey Gordon,

yeah we certainly want to offer that in the future, but as you can imagine it’s a pretty ambitious feature that also needs special attention for security, as we would probably introduce something like eval() into our code.

The feature is not on our roadmap yet, and won’t be for a while, so you better not rely on us implementing this very soon.

I am sorry that I do not have any better news. : /

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Replied in your other ticket as well. Going to close this one for now.