Sort images by landscape or square

Post Reply
tarek.bettaieb
Newbie
Posts: 4
Joined: Mon Sep 24, 2018 4:52 pm

Sort images by landscape or square

Post 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
r.zegwaard
Member
Posts: 93
Joined: Fri Jul 08, 2011 10:31 am
Location: The Netherlands

Re: Sort images by landscape or square

Post 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.
Attachments
screenshot.60.png
screenshot.60.png (19.65 KiB) Viewed 5746 times
tarek.bettaieb
Newbie
Posts: 4
Joined: Mon Sep 24, 2018 4:52 pm

Re: Sort images by landscape or square

Post 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
User avatar
Terkelsen
Advanced member
Posts: 298
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: Sort images by landscape or square

Post by Terkelsen »

Skærmbillede 2018-09-26 kl. 12.33.22.png
Skærmbillede 2018-09-26 kl. 12.33.22.png (77.44 KiB) Viewed 5719 times
r.zegwaard
Member
Posts: 93
Joined: Fri Jul 08, 2011 10:31 am
Location: The Netherlands

Re: Sort images by landscape or square

Post by r.zegwaard »

Here's a sample flow.
Attachments
sort images.zip
(4.98 KiB) Downloaded 372 times
tarek.bettaieb
Newbie
Posts: 4
Joined: Mon Sep 24, 2018 4:52 pm

Re: Sort images by landscape or square

Post by tarek.bettaieb »

Thank you :) it works :)
Post Reply