Page 1 of 1

Sort images (portrait-landscape)

Posted: Fri Mar 08, 2024 9:43 am
by BB-GBL
Is it possible to sort images (portrait and landscape) and put them in two different folders?
square images should go to the portrait flow.

Re: Sort images (portrait-landscape)

Posted: Fri Mar 08, 2024 9:59 am
by JimmyHartington
I would use a Switch calculation. Divide pixel-height with pixel-width and then use a connection to sort on this value larger than or equal to 1.
Then all portraits will end in one folder and landscape in the other.

If you need an example I will be happy to make one.

Re: Sort images (portrait-landscape)

Posted: Fri Mar 08, 2024 10:07 am
by freddyp
Switch calculation is not necessary. In the condition on a connection define [Image.ImageLength] greater than or equal to [Image.ImageWidth] for portrait and square, and the other connection takes all other jobs.

Re: Sort images (portrait-landscape)

Posted: Fri Mar 08, 2024 10:08 am
by jan_suhr
You can do it even simpler.
You have the variables for ImageLength and ImageWisth in the Image group

On the out going connection you set a condition with [Image.ImageLength] Less than [Image.ImageWidth]
the other connection gets "All other jobs"

Re: Sort images (portrait-landscape)

Posted: Fri Mar 08, 2024 10:11 am
by JimmyHartington
I love this forum. I am also learning something from such a relative simple questions.
Thanks to Jan and Freddy for the excellent answers.

Re: Sort images (portrait-landscape)

Posted: Fri Mar 08, 2024 1:28 pm
by rhd_ole
I just recently changed how I do it since I needed other info as well, I used to do it how jan mentioned, now I use Pitstop Fastlane app to get the orientation as landscape or portrait and some of the other info I needed such as media/trim/bleed box and any Spot colors used.

I love how there are so many way to do things, and I agree these communities are great!!!