On 09/10/2005, at 2:43 PM, Bernhard Praschinger wrote:


AnY good way to batCh process this on the CLI besides a for loop and
ppntojpeg?


I would use convert this way:
for i in *.pnm; do convert $i `basename $i pnm`jpg; done

convert can do the conversation to nearly every picture format.

Convert is a part of the imagemagick package. It needs to be installed first.

My personal favourite for converting to JPEG from PPM is to use the jpeg utilities themselves, they are installed when you install the jpeg libraries.

The tool is called cjpeg and you can specify the quality and type of jpeg (progressive, optimised etc)
Typical usage might be:

cjpeg -qual 95 -opt foo.ppm > foo.jpg

It has heaps of other options for advanced jpeg users, check out the man page.

Mark





-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to