Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display multiple images in Unix command line?

Tags:

unix

image

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!

like image 531
JC1217 Avatar asked Dec 25 '22 02:12

JC1217


1 Answers

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

like image 169
Mark Setchell Avatar answered Dec 27 '22 07:12

Mark Setchell