Page 1 of 1
Sort images by landscape or square
Posted: Mon Sep 24, 2018 4:58 pm
by tarek.bettaieb
Hello guys,
I need your help!
I'm trying to create a flow for images.
The idea is to sort images by landscape or square, and I'll made some rescale...
I tried with different script but no luck

javascript, expression etc....
Any idea how to do this?
Thank you
Tarek
Re: Sort images by landscape or square
Posted: Tue Sep 25, 2018 7:02 am
by r.zegwaard
HI,
You can compare the [Stats.PixelXDimension] with the [Stats.PixelYDimension]
If they are equal, it's square.
So make two connections with "Define condition with variables" to let only the wanted (square/landscape) files through.
Re: Sort images by landscape or square
Posted: Tue Sep 25, 2018 10:19 am
by tarek.bettaieb
Morning,
Yes I know I have to compare between 2 variables, but I don't know how

sorry.
Can you send me please please please a flow or how i can compare 2 variables
Thank you
Tarek
Re: Sort images by landscape or square
Posted: Wed Sep 26, 2018 12:34 pm
by Terkelsen

- Skærmbillede 2018-09-26 kl. 12.33.22.png (77.44 KiB) Viewed 7540 times
Re: Sort images by landscape or square
Posted: Wed Sep 26, 2018 4:16 pm
by r.zegwaard
Here's a sample flow.
Re: Sort images by landscape or square
Posted: Wed Sep 26, 2018 6:03 pm
by tarek.bettaieb
Thank you

it works
