Get The Width And Height Of An Image With ImageMagick

This is how I get the width and height of image files on the command line

Width:

Code

identify -format "%w" image.jpg

Height:

Code

identify -format "%h" image.jpg