Page 1 of 1

Check image dimensions

Posted: Thu Jan 21, 2016 5:13 pm
by ahlqvist
Hi everyone

I'm trying to set up a flow that should only process image files that has specific pixel dimensions and move all others to another folder - or fail them.
I am stuck... Anyone got an idea about the best way to do this? Is it possible?

Cheers!

Re: Check image dimensions

Posted: Thu Jan 21, 2016 7:56 pm
by gabrielp
You can route based on connection criteria ('include these jobs', for example) [Stats.PixelXDimension] and [Stats.PixelYDimension]. Found in group "Stats" under "Define text with variables".

If you don't see comparison options for "less than" and "greater than", then you can drop that in a into a Switch.Calculation expression, like this: [Switch.Calculation:Expression="[Stats.PixelXDimension]"], which will force it to be a number which should give you those comparison options.

Re: Check image dimensions

Posted: Fri Jan 22, 2016 8:42 am
by ahlqvist
That seems to be just what I am looking for, will give that a try. Thanks for your help!