Search code examples
imageunix

How to display multiple images in Unix command line?


I have 17 .png images I would quite like to look at at the same time so as to compare them. Is there a Unix command that displays all of them together? I have tried researching this but can't seem to find anything!


Solution

  • You could append them all together side-by-side into a combined image with ImageMagick which is in most Linux distros:

    convert *.png -append BigBoy.jpg
    

    enter image description here

    Then use feh or whatever viewer you like to view BigBoy.jpg. Change -append to +append to join them top-to-bottom instead of side-to-side.

    Or if you wanted them in a grid 4 images across, use montage like this:

    montage -tile 4x -geometry +0+0 *.png montage.jpg
    

    enter image description here

    Or use the flicker_compare script from the ImageMagick website here like this:

    flicker_cmp -o a.gif *.png
    

    enter image description here