Saturday, April 11, 2009

In Your Face

An 'in your face' to all the Windoze Box users! I'll tell you why my GNU/Linux box is better...

We have a huge syllabus, and we get a lot of class notes. I earlier used to photocopy the notes from others, which used up a lot of my allowances. It would have been welcome if I had studied from them. So spending huge sums of money on something I won't be using so much is, well, a Waste!

So came up the concept of scanning/taking pictures of the classnotes into a bunch of JPEG files. Its difficult to study from the JPEGs because the continuity is somewhat lost (assuming I am studying from the notes)

So here is what I need to do. Convert a bunch of JPEGs to a single PDF.

Last sem what I did is I copied the pics one after another to a ODT file on's the GNU/Linux alternative for MS Word), and then I convert it to PDF.

But that was too tedious...

(ODT/DOC to PDF is easier. Just open it using amd use the "Export to PDF" option in file menu. Its fast!)

Today I found an awesome tool called ImageMagick(well not technically today, I have used it earlier when I created graphs on my Ruby on Rails app [The Free Market] ).

I installed ImageMagick (its free) into my Mandriva box by doing a simple

urpmi imagemagick

as root user.

Other distro users can substitute urpmi with apt-get/yum install/zypper install or whatever package manager you use.

Then I used command line to move into the folder where I had the JPEGs ( cd path/to/images ) and here is how I converted my images to pdf. Wait for it.... wait for it... ok, here goes..

convert *.jpg sanyal.pdf

Beat that Windoze users!!!


Sayamindu said...

Here's another way:

Create a zip file with all the jpegs (assuming they have sequential names) in the zip.

Rename the extension from .zip to .cbz

Use a tool called comix, or Evince to open the file.

$hRiNk said...

Works! :)

roshansingh said...

this was really cool :)

Varsha Jaikumar said...

But does this convert command not do the conversion one by one? Are all the files merged into a single pdf file?

$hRiNk said...

Yes Varsha!
They ARE merged into a single PDF file! :)

Varsha Jaikumar said...

Then I too will try doing it. :)
No need to download Adobe Reader and all.

nik.agarwal said...

Thanks..Sahi suggestion sahi time pe...Jiyoo!!