[SWLUG] BMP to JPG

justin at discordia.org.uk justin at discordia.org.uk
Fri Apr 25 18:54:36 UTC 2003


On 25 Apr, Rhys Sage wrote:
> If the bmp to jpg program is really, desperately, urgently desired, I could write one (it'd run under Windows though). Is it desperately, urgently desired? And BTW, mine's a half of vodka.

Your way too late on that one.

I can think of at least three completly independant and totally free
ways to do it off the top of my head.

1. As already stated, 'convert' from the ImageMagick packages.
which will also let you transform, scale, draw on, and just about
anything else you could ever want to do in a shell script.

2. the netpbm-progs toolset,  using bmptoppm and ppmtojpeg
eg.  bmptoppm one.bmp | ppmtojpeg > one.jpg
and you can slot in any of the other ppm,pbm,pgm tools you want

3. The tools from libjpeg
eg.  cjpeg one.bmp > one.jpg 

If you didnt need a batchmode usable program, then graphics packages
like: xpaint, gimp, and numerous others can all do the job as well.

and thats just the ones you will typically find already installed.




More information about the Swlug mailing list