I know that convert
can use -auto-orient
parameter to correctly rotate image when resizing it but can I somehow get image's rotated size with respect to EXIF orientation using identify
?
Asked
Active
Viewed 565 times
4

martin
- 93,354
- 25
- 191
- 226
-
1Can you post one for folks to experiment with? – Mark Setchell Apr 14 '14 at 09:24
1 Answers
2
The -auto-orient option is not supported by identify so you will have to use the convert command. With the code below you can get the dimensions of your image:
// If you only need the width and height
convert -auto-orient image.jpg -format %wx%h info:
// If you want the same result as identify
convert -auto-orient image.jpg info:

dlemstra
- 7,813
- 2
- 27
- 43