home *** CD-ROM | disk | FTP | other *** search
/ Best Objectech Shareware Selections / UNTITLED.iso / boss / grap / util / 004 / gif2jpg.doc next >
Text File  |  1992-10-29  |  16KB  |  447 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.                                 GIF2JPG and JPG2GIF
  12.  
  13.                                     Version 2.0
  14.  
  15.  
  16.                                   October 30, 1992
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.                               Handmade Software, Inc.
  46.                           15951 Los Gatos Blvd., Suite 17
  47.                                 Los Gatos, CA  95032
  48.  
  49.                                 +1 408 358 1292 tel
  50.                                 +1 408 358 2694 fax
  51.                                 +1 408 356 3297 bbs
  52.  
  53.  
  54.                              internet:  hsi@netcom.com
  55.                               compuserve:  71330,3136
  56.  
  57.  
  58.                               Copyright (c) 1990-1992
  59.                                 All Rights Reserved
  60.  
  61.  
  62.  
  63.                                     Introduction
  64.  
  65.  
  66.            JPG2GIF and GIF2JPG are a set of programs which convert GIF
  67.            files to JPEG files and JPEG files back to GIF files.
  68.  
  69.            Why would you want to do this?
  70.  
  71.            Because JPEG files are typically smaller than GIF files.  So,
  72.            by converting images from GIF to JPEG you save on modeming
  73.            time, long distance charges, and disk storage requirements.
  74.            The disadvantage is that most viewers are designed for GIF
  75.            files, and so your JPEG files must be converted back to GIF
  76.            for viewing.
  77.  
  78.  
  79.  
  80.  
  81.                                Hardware Requirements
  82.  
  83.  
  84.            An IBM PC/AT or clone with an 80286 or better processor.
  85.  
  86.            A hard drive (JPG2GIF needs to open temporary files while
  87.            processing; you must have at least 3 times as much disk space
  88.            available as the largest image you are converting.  For
  89.            example, a 640 by 480 file requires 1 Megabyte of free space).
  90.  
  91.            MS-DOS or PC-DOS 3.1 or later.
  92.  
  93.            380K of available RAM.
  94.  
  95.  
  96.  
  97.  
  98.                                 The Freeware Concept
  99.  
  100.  
  101.            GIF2JPG and JPG2GIF are freeware programs.  Please feel free
  102.            to distribute them by giving copies to your friends, uploading
  103.            them to bulletin boards, and trading them at user clubs.  You
  104.            must distribute them unaltered, and as a set, including this
  105.            document.  You may not sell these files for more than a $7.00
  106.            media duplication cost.
  107.  
  108.            Although GIF2JPG and JPG2GIF used to be shareware programs,
  109.            they are now freeware.  You may use them as much as you like,
  110.            for as long as you like; there is no registration fee.  It is
  111.            important to note that these programs are still copyrighted,
  112.            and not in the public domain.  As such, they cannot be sold
  113.            for profit, and may not be used in or disributed as part of
  114.            any freeware, shareware, or commercial software without the
  115.            prior written consent of Handmade Software, Inc.
  116.  
  117.  
  118.  
  119.                               Using GIF2JPG & JPG2GIF
  120.  
  121.            To convert .GIF files to .JPG files:
  122.  
  123.                 GIF2JPG [options] [files...]
  124.  
  125.            If any .JPG files with the same name already exist you will be
  126.            asked whether to overwrite them.  If any GIF89A files are
  127.            encountered you will be asked whether or not to convert them.
  128.            GIF89A files are not automatically converted since they can
  129.            contain text and multiple images; this information will be
  130.            lost when the image is converted to a JPEG file.
  131.  
  132.  
  133.            To convert .JPG files to .GIF files:
  134.  
  135.                 JPG2GIF [options] [files...]
  136.  
  137.            If any .GIF files already exist you will be asked whether or
  138.            not to overwrite them.
  139.  
  140.  
  141.            There are three options which are common to both programs:
  142.  
  143.                 -a:  automatically proceeds (overwriting any existing
  144.                      files and converting GIF89A files).
  145.  
  146.                 -h:  display the help screen
  147.  
  148.                 -k:  kill (delete) the original files after they are
  149.                      processed.
  150.  
  151.            The GIF2JPG program has two additional options:
  152.  
  153.                 -q[n]:  specify the JPEG quality factor which will be
  154.                         used when compressing GIF files.
  155.  
  156.                         The default is 55.
  157.  
  158.                         A lower number will result in a higher
  159.                         compression ratio, but a lower quality image.
  160.                         Specifying a very low quality factor (less than
  161.                         15) will result in poor quality images.
  162.  
  163.                 -s:     write an HSI JPEG file (not compatible with the
  164.                         JFIF standard).
  165.  
  166.                         HSI JPEG files typically give better compression,
  167.                         especially with images containing lots of
  168.                         continuous-colour, but can only be read by
  169.                         Handmade Software, Inc. products.
  170.  
  171.            Note that you may specify wild cards as part of the file name
  172.            and that multiple file names may be specified.
  173.  
  174.  
  175.  
  176.            Examples:
  177.  
  178.                 GIF2JPG -q30 *.gif
  179.  
  180.            Will convert all .GIF files in the current directory to .JPG
  181.            files, using a quality factor of 30.
  182.  
  183.                 JPG2GIF -k -a test.jpg madonna.jpg n?.jpg
  184.  
  185.            Will convert the specified files back to .GIF files, deleting
  186.            the .JPG files and automatically overwriting the existing GIF
  187.            files.
  188.  
  189.  
  190.                                  Temporary Storage
  191.  
  192.            GIF2JPG and JPG2GIF create temporary files on your hard drive
  193.            when performing various conversions.  These temporary files
  194.            are normally placed in the current directory.  To force the
  195.            creation of these files in a different directory, or different
  196.            drive, you can set the environment variable TMP to the desired
  197.            location.
  198.  
  199.            To set the temporary directory to C:\TEMP, you would type
  200.  
  201.                 C:\>set TMP=c:\temp
  202.  
  203.            at the DOS prompt.
  204.  
  205.            If you interrupt GIF2JPG or JPG2GIF or it aborts with an
  206.            error, it is possible that the temporary files might not be
  207.            deleted.  The files have the name TMPxxxxx.
  208.  
  209.  
  210.                                    Image Quality
  211.  
  212.            JPEG compression works best on images which are continuous
  213.            tone images, such as those produced by a scanner or digitizer.
  214.            Images which are drawn with paint programs typically do not
  215.            JPEG compress very well.
  216.  
  217.            In addition, the best quality JPEG images result when you
  218.            start with 24 bit, undithered images.  Unfortunately GIF does
  219.            not support 24 bit images, and most of the 8 bit GIF images
  220.            are dithered.  So, if you are using a scanner or digitizer to
  221.            produce images, you can get better compression ratios, and
  222.            better quality images, if you generate 24 bit Targa or TIFF
  223.            files and then convert them to JPEG files.  You can't do this
  224.            with GIF2JPG, but you can with another Handmade product, Image
  225.            Alchemy.  See the blatant ad below.
  226.  
  227.  
  228.  
  229.                       Answers to Frequently Asked Questions:
  230.  
  231.  
  232.            Q:   How do you pronounce JPG?
  233.  
  234.            A:   Jay-peg.  JPG is short for JPEG, which is short for Joint
  235.                 Photographic Experts Group.  Note that we use JPEG and
  236.                 JPG to mean the same thing;  JPG only exists because PC
  237.                 file names are restricted to having a three letter
  238.                 extension.
  239.  
  240.                 By the way, we firmly believe that GIF should be
  241.                 pronounced with a hard G like the word gift.  The primary
  242.                 justification for this is that GIF stands for Graphics
  243.                 Interchange Format, and the word Graphics starts with a
  244.                 hard G.  So if you call us up for technical support don't
  245.                 be surprised if we say GIF (with a hard G).
  246.  
  247.  
  248.