A rather dull worKLOG. This is just a scratchpad for solutions to IT problems that might be useful to someone else. Expect no opinions, no brilliant insights and definitely no pictures of pets or children. Expect stack traces, code snippets and other hints for the Google Indexer.

Tuesday, February 06, 2007

Converting jpgs to ps or eps

A bit of googling finds a number of commercial and shareware packages that will do this task, but you can also do:

jpegtopnm MyDog.jpg | pnmtops > MyDog.ps

on a unix machine.

http://en.wikipedia.org/wiki/Portable_Pixmap_file_format