linuximagecommand-linedimension

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

Solution

  • I think this is what you need

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

    or

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