Sorting images based on portrait and landscape
Posted: Mon May 16, 2011 10:29 am
I have tried to make a script expression, which should make all portrait (and square images) move through the connection on which this expression is set.
This is my expression:
// Moves portrait images through connection
var x = photo.getPixelXDimension();
var y = photo.getPixelYDimension();
x / y >= 1;
And it does not work.
Probably because the photo.getPixelXDimension() is not correct.
Is there a place to look up the different options I have for getting information about a file?
I have used the variables alot and would hope I had the same options in javascript.
This is my expression:
// Moves portrait images through connection
var x = photo.getPixelXDimension();
var y = photo.getPixelYDimension();
x / y >= 1;
And it does not work.
Probably because the photo.getPixelXDimension() is not correct.
Is there a place to look up the different options I have for getting information about a file?
I have used the variables alot and would hope I had the same options in javascript.