Author Topic: if else  (Read 2538 times)

Offline zzxzz

  • Newcomer
  • *
  • Posts: 1
    • View Profile
if else
« on: April 26, 2014, 03:19:33 AM »
hi,
is there any way to add a keyword to all landscape images and another one to all portrait images?
like: {keyw} = ({width} > {height}) ? "Landscape" : "Portrait"

any help would be great. :)

regards

Offline Luiz Muzzi

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • Luiz Muzzi Photography
Re: if else
« Reply #1 on: April 26, 2014, 07:29:18 PM »
Hi,
You can use the variable {aspect}. You have to put it in the keyword section of the IPTC Info panel.
This way you will know if the picture is vertical or horizontal oriented and also whether it is  2x3, 4x5, 3x4, etc.
HTH,

-Luiz Muzzi