JC1217
JC1217

Reputation: 189

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!

Upvotes: 6

Views: 5681

Answers (2)

Nomacs

You may also be interested in Nomacs: https://github.com/nomacs/nomacs

Install on Ubuntu 24.04:

sudo apt install nomacs

Then when you open a directory with many images with:

nomacs .

you get thumbnails like this:

enter image description here

I've given some more details at: https://askubuntu.com/questions/1211087/software-to-seamlessly-edit-multiple-images/1292048#1292048

Upvotes: 0

Mark Setchell
Mark Setchell

Reputation: 208052

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

Upvotes: 15

Related Questions