Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Sep 182011

Combine multiple images into a single image with ImageMagick


With the powerful ImageMagick program, we can easily handle common graphics tasks using command only.

For example, to combine multiple images into a single image, we need just one command:

# convert file1.jpg file2.jpg file3.jpg +append -quality 90 'output.jpg'

The above command (file1.jpg file2.jpg file3.jpg) into the file output.jpg with quality set to 90.

Jul 092010

Print large banner on printer


This is a less well known command for Linux. It allow you to prints a large, high quality banner on the standard output.


# banner -w 80 Hello World

Where -w change the width of the output, in which the default is 132.

Feb 122010

Convert HTML to image


Firstly, you need to install html2ps

# sudo apt-get install html2ps

Then install the ImageMagick

# sudo apt-get install imagemagick

Finally run the command:

# convert -density 72 input.html output.png