auto resize


#1

Hello guys!

Question: I’m looking for a way to measure the widest part of an image sequence (with alpha) and then normalize the sequence to a predefined size.

Real life situation: I have 360 degrees photograph sequences of hundreds of products (36 frames, all keyed, so with alpha. 1024x1024 ). Some products are bigger/wider/taller than others. But they all need to fit into a certain size tile on a website.

Example: a helmet squence with a maximum width at frame 10 of 800px. Needs to fit into a 254x254 tile.

Idea: I could obviously scale it down with a Transform node. But I’m looking for a way to automate that. I know you can measure width with the CurveTool (Auto Crop). So maybe somehow get the maximum of that and then make and expression with that for the Transform scale and also center it… I wouldn’t quite know how to do that.

Maybe any of you can point me in the right direction.
I’m using nuke 8 on windows 7.
Thanks!