[Tugindia] Creating JPG/JPEG

Somendra M Bhattacharjee tugindia@tug.org
Sun, 22 Dec 2002 15:14:21 +0530 (IST)

If ImageMagick is available the simplest command is

   convert myfile.ps  myfile.png

The extension of the last filename  determines the final format.
  (it could be myfile.gif  or myfile.jpg .....)   
  (more info and details on options are in man pages)
   In this form it  can be used in a script also.
Here is a comparison of sizes:

 4.0K alpha.tex <--- original tex file
 56K alpha.ps   <---  ps file by dvips
 80K alpha.gif  <-- (convert alpha.ps alpha.gif)
 8.0K alpha.png <-- (convert alpha.ps alpha.png) :::smallest size
 20K alpha.jpg  <-- (convert alpha.ps alpha.jpg)

PNG seems to be the best choice, especially if the image  is to be sent by 
email or kept on a webpage (may not be for printing).