Sort images (portrait-landscape)

Post Reply
BB-GBL
Newbie
Posts: 2
Joined: Thu Jan 04, 2024 11:46 am

Sort images (portrait-landscape)

Post 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.
User avatar
JimmyHartington
Advanced member
Posts: 310
Joined: Tue Mar 22, 2011 7:38 am

Re: Sort images (portrait-landscape)

Post 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.
freddyp
Advanced member
Posts: 1023
Joined: Thu Feb 09, 2012 3:53 pm

Re: Sort images (portrait-landscape)

Post 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.
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Sort images (portrait-landscape)

Post 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"
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
User avatar
JimmyHartington
Advanced member
Posts: 310
Joined: Tue Mar 22, 2011 7:38 am

Re: Sort images (portrait-landscape)

Post 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.
rhd_ole
Member
Posts: 103
Joined: Mon Jan 24, 2022 5:36 pm

Re: Sort images (portrait-landscape)

Post 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!!!
Color Science & Workflow Automation
Post Reply