Save command output to image


To save a command output to image we can use convert command.

By default convert command is not available in Ubuntu.

convert command is available in imagemagick module.

Install imagemagick with following command:

$ sudo apt-get install imagemagick

Above command is specific to Debian/Ubuntu operating systems. Depending on your operating system the may vary.

Here is the example to convert a command output to image.


$ command | convert label:@- output.png

In above syntax command is any valid command and output.png is output image name to store command output.


$ ls | convert label:@- ls.png

In above example ls command output is stored in ls.png



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s