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
Sort images by landscape or square
-
- Newbie
- Posts: 4
- Joined: Mon Sep 24, 2018 4:52 pm
-
- Member
- Posts: 93
- Joined: Fri Jul 08, 2011 10:31 am
- Location: The Netherlands
Re: Sort images by landscape or square
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.
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.
- Attachments
-
- screenshot.60.png (19.65 KiB) Viewed 5755 times
-
- Newbie
- Posts: 4
- Joined: Mon Sep 24, 2018 4:52 pm
Re: Sort images by landscape or square
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
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
-
- Member
- Posts: 93
- Joined: Fri Jul 08, 2011 10:31 am
- Location: The Netherlands
Re: Sort images by landscape or square
Here's a sample flow.
- Attachments
-
- sort images.zip
- (4.98 KiB) Downloaded 372 times
-
- Newbie
- Posts: 4
- Joined: Mon Sep 24, 2018 4:52 pm
Re: Sort images by landscape or square
Thank you it works