home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best Objectech Shareware Selections
/
UNTITLED.iso
/
boss
/
grap
/
util
/
004
/
gif2jpg.doc
next >
Wrap
Text File
|
1992-10-29
|
16KB
|
447 lines
GIF2JPG and JPG2GIF
Version 2.0
October 30, 1992
Handmade Software, Inc.
15951 Los Gatos Blvd., Suite 17
Los Gatos, CA 95032
+1 408 358 1292 tel
+1 408 358 2694 fax
+1 408 356 3297 bbs
internet: hsi@netcom.com
compuserve: 71330,3136
Copyright (c) 1990-1992
All Rights Reserved
Introduction
JPG2GIF and GIF2JPG are a set of programs which convert GIF
files to JPEG files and JPEG files back to GIF files.
Why would you want to do this?
Because JPEG files are typically smaller than GIF files. So,
by converting images from GIF to JPEG you save on modeming
time, long distance charges, and disk storage requirements.
The disadvantage is that most viewers are designed for GIF
files, and so your JPEG files must be converted back to GIF
for viewing.
Hardware Requirements
An IBM PC/AT or clone with an 80286 or better processor.
A hard drive (JPG2GIF needs to open temporary files while
processing; you must have at least 3 times as much disk space
available as the largest image you are converting. For
example, a 640 by 480 file requires 1 Megabyte of free space).
MS-DOS or PC-DOS 3.1 or later.
380K of available RAM.
The Freeware Concept
GIF2JPG and JPG2GIF are freeware programs. Please feel free
to distribute them by giving copies to your friends, uploading
them to bulletin boards, and trading them at user clubs. You
must distribute them unaltered, and as a set, including this
document. You may not sell these files for more than a $7.00
media duplication cost.
Although GIF2JPG and JPG2GIF used to be shareware programs,
they are now freeware. You may use them as much as you like,
for as long as you like; there is no registration fee. It is
important to note that these programs are still copyrighted,
and not in the public domain. As such, they cannot be sold
for profit, and may not be used in or disributed as part of
any freeware, shareware, or commercial software without the
prior written consent of Handmade Software, Inc.
Using GIF2JPG & JPG2GIF
To convert .GIF files to .JPG files:
GIF2JPG [options] [files...]
If any .JPG files with the same name already exist you will be
asked whether to overwrite them. If any GIF89A files are
encountered you will be asked whether or not to convert them.
GIF89A files are not automatically converted since they can
contain text and multiple images; this information will be
lost when the image is converted to a JPEG file.
To convert .JPG files to .GIF files:
JPG2GIF [options] [files...]
If any .GIF files already exist you will be asked whether or
not to overwrite them.
There are three options which are common to both programs:
-a: automatically proceeds (overwriting any existing
files and converting GIF89A files).
-h: display the help screen
-k: kill (delete) the original files after they are
processed.
The GIF2JPG program has two additional options:
-q[n]: specify the JPEG quality factor which will be
used when compressing GIF files.
The default is 55.
A lower number will result in a higher
compression ratio, but a lower quality image.
Specifying a very low quality factor (less than
15) will result in poor quality images.
-s: write an HSI JPEG file (not compatible with the
JFIF standard).
HSI JPEG files typically give better compression,
especially with images containing lots of
continuous-colour, but can only be read by
Handmade Software, Inc. products.
Note that you may specify wild cards as part of the file name
and that multiple file names may be specified.
Examples:
GIF2JPG -q30 *.gif
Will convert all .GIF files in the current directory to .JPG
files, using a quality factor of 30.
JPG2GIF -k -a test.jpg madonna.jpg n?.jpg
Will convert the specified files back to .GIF files, deleting
the .JPG files and automatically overwriting the existing GIF
files.
Temporary Storage
GIF2JPG and JPG2GIF create temporary files on your hard drive
when performing various conversions. These temporary files
are normally placed in the current directory. To force the
creation of these files in a different directory, or different
drive, you can set the environment variable TMP to the desired
location.
To set the temporary directory to C:\TEMP, you would type
C:\>set TMP=c:\temp
at the DOS prompt.
If you interrupt GIF2JPG or JPG2GIF or it aborts with an
error, it is possible that the temporary files might not be
deleted. The files have the name TMPxxxxx.
Image Quality
JPEG compression works best on images which are continuous
tone images, such as those produced by a scanner or digitizer.
Images which are drawn with paint programs typically do not
JPEG compress very well.
In addition, the best quality JPEG images result when you
start with 24 bit, undithered images. Unfortunately GIF does
not support 24 bit images, and most of the 8 bit GIF images
are dithered. So, if you are using a scanner or digitizer to
produce images, you can get better compression ratios, and
better quality images, if you generate 24 bit Targa or TIFF
files and then convert them to JPEG files. You can't do this
with GIF2JPG, but you can with another Handmade product, Image
Alchemy. See the blatant ad below.
Answers to Frequently Asked Questions:
Q: How do you pronounce JPG?
A: Jay-peg. JPG is short for JPEG, which is short for Joint
Photographic Experts Group. Note that we use JPEG and
JPG to mean the same thing; JPG only exists because PC
file names are restricted to having a three letter
extension.
By the way, we firmly believe that GIF should be
pronounced with a hard G like the word gift. The primary
justification for this is that GIF stands for Graphics
Interchange Format, and the word Graphics starts with a
hard G. So if you call us up for technical support don't
be surprised if we say GIF (with a hard G).