pnmtojpeg

convert PNM image to a JFIF ("JPEG") image

copy
1
0
cat foo.bmp | bmptoppm | pnmtojpeg > foo.jpg

source | details |

copy
0
0
pnmtojpeg --quality=60 foo.ppm > foo.jpg

source | details |