First post here. Hello!
Can I use Irfanview from a script to determine the dimensions of a given image (usually JPG)? I can't see a command-line switch that looks relevant.
I have two displays; primary landscape, secondary portrait. I'm thinking of writing a script to display images randomly, but I'd like the landscape images to go to the landscape display and the portrait images to go to the portrait display. I could do all of this with technology that I already had, except reliably determining the dimensions. If there is an algorithm for extracting it from a jpg, then I could use that. I had some code that I wrote years ago, based on having found the image dimensions inside an existing JPG file, and working out how to navigate to it, but it was unreliable (no surprises there).
Can I use Irfanview from a script to determine the dimensions of a given image (usually JPG)? I can't see a command-line switch that looks relevant.
I have two displays; primary landscape, secondary portrait. I'm thinking of writing a script to display images randomly, but I'd like the landscape images to go to the landscape display and the portrait images to go to the portrait display. I could do all of this with technology that I already had, except reliably determining the dimensions. If there is an algorithm for extracting it from a jpg, then I could use that. I had some code that I wrote years ago, based on having found the image dimensions inside an existing JPG file, and working out how to navigate to it, but it was unreliable (no surprises there).
Comment