File Format Converting


Table of Contents

*.jpg's=>smaller*.jpg's on the command line 
*.jpg's=>smaller*.jpg's on the command line 
*.jpg's=>smaller*.jpg's on the command line 
PDF / RTF 
pkg:psutils 
why 
gocr 
Info 
Source 
Qui-ne-faut 
Info 
Source 
Related Urls 
Comments 
get passwd and username 
ivt2html 

*.jpg's=>smaller*.jpg's on the command line 

> Does anyone know of a utility that will do something like 'reduce-by-25%
> *.jpg'
  1. Install the pbm utilities (Poskanzer's Bitmap)
  2. Install the jpeg library/utilities
  3. djpeg foo.jpeg | pnmscale 0.25 | cjpeg -optimize > foo.25.jpeg

David K. Drum

*.jpg's=>smaller*.jpg's on the command line 

djpeg -g foo.jpg | cjpeg -q 10 > small.jpg

This decompresses to GIF and then feeds the GIF into cjpeg to make a JPG of pretty low (in this case, 10) quality (hence small size).

cjpeg and djpeg are freewares available in the usual places - they are installed by default on RH Linux. You still have to play with it a bit to figure out a good internal format to use.

Kenny McCormack

*.jpg's=>smaller*.jpg's on the command line 

Use John Cristy's ImageMagick.

http://www.wizards.dupont.com/cristy/ImageMagick.html

noble

documented on: 1999.09.13