Closed besule closed 3 years ago
Thnx for the patch! Checking the photoDimension.orient against nil makes sense. There is a helper function:
ifnil(value, default)
defined in PSUtils.lua. So, I would suggest to change line 296:
photoDimension.orient = ifnil(results[1].Orientation, 'Horizontal')
You are absolutly right, i did not see that. I had to export about 45000 images over the weekand and was in a hurry to fix this line :-).
Hi,
first i would like to say thank you for your plugin, it is really great. I came up an exception. I have some photos where the 'photoDimension.orient' is nil. So a check if the 'photoDimension.orient' is nill would make sense. At first i wanted to remove the whole branch of the if, but you definatly need it, or otherwise the exception occurs in the other branches of the if statement.
i put the isempty function above, since i have no idea, where you would want to put thoes simple helper functions.