Quick command-line jpeg to pdf converter

If you have a document in jpeg format and you want to print it in a more friendly printable format, let use convert from the ImageMagick utilities.

To install it :

root@localhost:~#apt-get install imagemagick imagemagick-doc

To make the conversion :

fool@localhost:~$ convert your_image.jpg your_image.pdf

Then you can open your new document with your pdf viewer.

Sometimes, this process can lead to a bigger file in size. Adding the following option -compress jpeg may help decrease this size :

fool@localhost:~$convert -compress jpeg your_image.jpg your_image.pdf

If you are planning to make more complex operations on pdf documents, have a look at the utilities provided by the pdfjam package.

 

Advertisements

One thought on “Quick command-line jpeg to pdf converter

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s