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

I am working on a Photo-booth installation, and i want to take 4 photos (this i have figured out), and then combine them so they are on a a4 paper sheet ready to be printed.

I need to do this through the console, so I can automate the whole process. I have looked at, but I can only figure out how to overlay the images.

share|improve this question
up vote 5 down vote accepted

You need the montage command. I haven't got any examples to hand, but I've used it in the past, and there are some good examples at the link and also here:

share|improve this answer
this worked perfectly – Tommyka Mar 13 '12 at 20:58

I've used

convert *.png result.pdf

and then used evince's option to print 4 pages per sheet.

Maybe this can point you in a viable direction.

share|improve this answer
The OP is asking for a console method to print. As far as I know the Evince don't have the option to print from command line. – yossile Mar 13 '12 at 8:31
This was meant as a pointer rather than a complete solution. It is not unlikely that, if indeed evince doesn't support command line printing, then some other tool can do it. It might even be possible to use 'convert' options to make a proper pdf, and then use 'lpr' for printing it. – apr3ntice Mar 13 '12 at 8:58
Pointers are better as comments, not answers. – hexafraction Jul 20 '12 at 22:00

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.