List width and height of all images in a folder from Linux command line


I want to see the image dimensions of all the jpg images together in a list through a command line in Linux. Following code works for only one image.

    identify -format "%wx%h" xxxx.jpg


I think this is what you need

 xargs  identify -format "%wx%h\n" < <(ls -tr1)


ls -1 | xargs -L1 identify -format "%wx%h\n"

Answered By – pvlt

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published