Given this image, I tried to read the image height and width in pixel values, but they are inverted on my Ubuntu PC (Ubuntu 20.04.3 LTS). When I open the image to visualize it, is clear that height > width.
Windows gets it right though:
So width should be 336 and height 448.
On Ubuntu I tried (one needs imagemagick installed, so if needed: sudo apt-get install imagemagick):
wget
identify -format '%h %w' 2075125.jpg
# gives 336 448 and it should be 448 336I also tried other tools, thinking that maybe is an imagemagick issue:
sudo apt install libimage-size-perl # for imgsize
imgsize 2075125.jpg
# width="448" height="336" # same issueor
sudo apt install libimage-exiftool-perl
exiftool -ImageHeight -ImageWidth 2075125.jpg
# Image Height : 336
# Image Width : 448I don't understand what is the issue here and I would appreciate help.
1 Reset to default