Extracting image orientation from a JPEG
Posted: 2017-12-13T07:42:15-07:00
Hi,
I'm a Windows 10 user and I want to determine the resolution or orientation (portrait or landscape) of my image files. When I use the following command-line, everything works fine:
magick identify -format "%i:%W:%H\r\n" *.jpg
RESULTS (filename:width:height) :
1.jpg:1920:1080
2.jpg:1920:1080
When I try the same thing in the following batch file (image.cmd):
@echo off
cd "%userprofile%\Pictures"
erase /F image_list
magick identify -format "%i:%W:%H\r\n" *.jpg >> image_list
I get the following RESULTS:
W:H
W:H
WHY ? Can anyone help me or is there a simplier way to do that ?
Thanks!
Desch
I'm a Windows 10 user and I want to determine the resolution or orientation (portrait or landscape) of my image files. When I use the following command-line, everything works fine:
magick identify -format "%i:%W:%H\r\n" *.jpg
RESULTS (filename:width:height) :
1.jpg:1920:1080
2.jpg:1920:1080
When I try the same thing in the following batch file (image.cmd):
@echo off
cd "%userprofile%\Pictures"
erase /F image_list
magick identify -format "%i:%W:%H\r\n" *.jpg >> image_list
I get the following RESULTS:
W:H
W:H
WHY ? Can anyone help me or is there a simplier way to do that ?
Thanks!
Desch