Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A contact sheet is a image containing the name and a the small version of a group of images, like this :

alt text

Which is the best program to do it from the command line?

(Preferably something that is already package with Ubuntu.)

share|improve this question

montage (part of the imagemagick package) can do this.

The options are exhastive so i thoroughly recommend running man montage but here's an example I pulled to show off the perverse level of detail you can go into:

montage -size 400x400 ~/Pictures/2008/Sept/*.JPG  -thumbnail 200x200 -font /var/lib/defoma/gs.d/dirs/fonts/Vera.ttf  -set caption '%t' -bordercolor Lavender -background grey40  -gravity Center   -pointsize 9  -density 144x144  +polaroid  -resize 50%   -set label ''  -background white  -geometry +1+1  -tile 5x  index.html

It makes both a webpage and a contact image.

share|improve this answer
Thanks for your perverse example, but I think a simple example would be more useful. – Guillaume Coté Dec 31 '10 at 18:47

For interactive use, feh takes the prize, especially if you're dealing with a lot of images. feh -t images... and you're off. Has options to easily control thumb and total sizes, and the thumbs are clickable through to the real thing.

For printing, feh works, but montage (as per @Oli's suggestion) is probably more dependable as it handles more image formats than feh.

For completeness I should mention that gimp-plugin-registry has a plugin for Gimp ("Contact Sheet 2.0") that produces contact sheets from a directory of images, which is relatively user friendly.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.