Check image dimensions

Post Reply
ahlqvist
Newbie
Posts: 5
Joined: Mon Dec 15, 2014 10:27 am

Check image dimensions

Post 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!
User avatar
gabrielp
Advanced member
Posts: 577
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Check image dimensions

Post 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.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
ahlqvist
Newbie
Posts: 5
Joined: Mon Dec 15, 2014 10:27 am

Re: Check image dimensions

Post by ahlqvist »

That seems to be just what I am looking for, will give that a try. Thanks for your help!
Post Reply