Return-Path: <pshuang@MIT.EDU>
Received: from grand-central-station.mit.edu by po11.mit.edu (8.9.2/4.7) id PAA11426; Sun, 21 Oct 2001 15:48:53 -0400 (EDT)
Received: from manawatu-mail-centre.mit.edu (MANAWATU-MAIL-CENTRE.MIT.EDU [18.7.21.85])
	by grand-central-station.mit.edu (8.9.2/8.9.2) with ESMTP id PAA22224;
	Sun, 21 Oct 2001 15:48:51 -0400 (EDT)
Received: from scrubbing-bubbles.mit.edu (SCRUBBING-BUBBLES.MIT.EDU [18.7.16.68])
	by manawatu-mail-centre.mit.edu (8.9.2/8.9.2) with ESMTP id PAA29609;
	Sun, 21 Oct 2001 15:48:50 -0400 (EDT)
Received: (from pshuang@localhost) by scrubbing-bubbles.mit.edu (8.9.3)
	id PAA25434; Sun, 21 Oct 2001 15:48:50 -0400 (EDT)
Message-Id: <200110211948.PAA25434@scrubbing-bubbles.mit.edu>
From: Ping Huang <pshuang@alum.mit.edu>
To: "Uzair, Khusrow" <uzair_khusrow@hotmail.com>
cc: sipb@MIT.EDU
Subject: Re: Creating a JPEG File
In-reply-to: Your message of "Sun, 21 Oct 2001 15:35:56 EDT."
             <3BD3239C.2020602@mit.edu> 
Date: Sun, 21 Oct 2001 12:48:50 -0700
Sender: pshuang@MIT.EDU

jmorzins@MIT.EDU wrote at Sun, 21 Oct 2001 15:35:56 EDT:

 > Uzair, Khusrow wrote:
 > 
 > > Could someone please tell me how do we create a .jpg file. Is any
 > > software available on the web for free download?
 > 
 > I'm certain software is available, but don't have any URL's on the top
 > of my head at the moment.  Find a shareware/freeware distribution site,
 > and search for image viewing programs or image editing programs, and
 > you'll be sure to turn something up.
 > 
 > www.download.com or www.tucows.com are two distribution sites I can
 > think of off-hand; I have not checked to see if they have what you want.

Note that the answer to your question really depends on what kinds of
images you are trying to create JPEG (.jpg) files from.  JPEG is one
of many file formats for images; typically JPEGs are photographs of
the real world which have been digitized.  Other image formats, like
GIF and PNG, are more frequently used for simple computer graphics
which have been generated by an application: for example, bar charts
and other graphs, diagrams, etc.  While such images could be in stored
in JPEG format, for technical reasons I won't go into here, JPEG tends
to be inefficient for such images because of how JPEG compresses the
image data; whereas JPEG compression is typically very efficient for
photographs.  Most JPEG files are initially created using scanning
software and a hardware image scanner to scan in an image on a sheet
of paper, or by downloading already-digitized photographs from a
digital camera to a computer.  Image editing programs would allow you
to manipulate JPEGs; e.g., crop, rotate, change the color saturation,
try to remove various imperfections, etc.  An example of a very
popular, but commercial (not freely distributable), image editing
application is Adobe Photoshop.  There are various freely
distributable applications which provide some of the same
functionality, both in GUI form and in command-line programs form.

As for other, non-photographic image formats like GIF and PNG, there
are various applications and libraries which can be used from your
application in order to create them.  For example, there are libraries
which allow your application to specify some raw numbers and labels,
and will create a graph and save it to a GIF or PNG format file.  If
that's what you're looking, you should describe more about exactly
what you are trying to do.

-- 
Ping Huang <pshuang@alum.mit.edu>; info: http://web.mit.edu/pshuang/.plan
        Disclaimer: unless explicitly otherwise stated, my
        statements represent my personal viewpoints only.

