Home » Personal collection » Acorn hard disk » apps » web » !ChangeFSI/JPEGinfo

!ChangeFSI/JPEGinfo

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » apps » web
Filename: !ChangeFSI/JPEGinfo
Read OK:
File size: 5333 bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
The Independent JPEG Group's JPEG software
==========================================

README for release 3 of  17-Mar-92
==================================

This distribution contains the third official release of the Independent JPEG
Group's free JPEG software.  You are welcome to redistribute this software and
to use it for any purpose, subject to the conditions under LEGAL ISSUES, below.

For usage instructions, see section USAGE.

This software is still undergoing revision.  Updated versions may be obtained
by FTP or UUCP to UUNET and other archive sites; see ARCHIVE LOCATIONS below
for details.

If you intend to become a serious user of this software, please contact
jpeg-info@uunet.uu.net to be added to our electronic mailing list.  Then
you'll be notified of updates and have a chance to participate in discussions,
etc.

This software is the work of Tom Lane, Philip Gladstone, Luis Ortiz,
Lee Crocker, Ge' Weijers, and other members of the Independent JPEG Group.


DISCLAIMER
==========

THIS SOFTWARE IS NOT COMPLETE NOR FULLY DEBUGGED.  It is not guaranteed to be
useful for anything, nor to be compatible with subsequent releases, nor to be
an accurate implementation of the JPEG standard.  (See LEGAL ISSUES for even
more disclaimers.)

Please report any problems with this software to jpeg-info@uunet.uu.net.


WHAT'S HERE
===========

This distribution contains compiled C software to implement JPEG image
compression and decompression.  JPEG (pronounced "jay-peg") is a standardized
compression method for full-color and gray-scale images.  JPEG is intended for
"real-world" scenes; cartoons and other non-realistic images are not its strong
suit.  JPEG is lossy, meaning that the output image is not necessarily
identical to the input image.  Hence you should not use JPEG if you have to
have identical output bits.  However, on typical images of real-world scenes,
very good compression levels can be obtained with no visible change, and
amazingly high compression levels can be obtained if you can tolerate a
low-quality image.  For more details, see the references, or just experiment
with various compression settings.

The software implements JPEG baseline and extended-sequential compression
processes.  Provision is made for supporting all variants of these processes,
although some uncommon parameter settings aren't implemented yet.  For legal
reasons, we are not distributing code for the arithmetic-coding process; see
LEGAL ISSUES.  At present we have made no provision for supporting the
progressive, hierarchical, or lossless processes defined in the standard.

The present software is not far beyond the prototype stage.  It does not
support all possible variants of the JPEG standard, and some functions have
rather slow and/or crude implementations.  However, it is useful already.

The emphasis in designing this software has been on achieving portability and
flexibility, while also making it fast enough to be useful.  We have not yet
undertaken serious performance measurement or tuning; we intend to do so in
the future.

In particular, we welcome the use of this software as a component of commercial
products; no royalty is required.


ARCHIVE LOCATIONS
=================

The "official" archive site for this software (including the source) is
ftp.uu.net (Internet address 137.39.1.9 or 192.48.96.9).  The most recent
released version can always be found there in directory graphics/jpeg.  This
particular version will be archived as jpegsrc.v3.tar.Z.  If you are on the
Internet, you can retrieve files from UUNET by anonymous FTP.  If you don't
have FTP access, UUNET's archives are also available via UUCP; contact
postmaster@uunet.uu.net for information on retrieving files that way.

Various other Internet sites maintain copies of the UUNET file, which may or
may not be up-to-date.  In Europe, try nic.funet.fi (128.214.6.100; look in
directory pub/graphics/programs/jpeg).

You can also obtain this software from CompuServe, in the GRAPHSUPPORT forum
(GO PICS), library 10; this version will be file jpsrc3.zip.


SOFTWARE THAT'S NO HELP AT ALL
==============================

Handmade Software's shareware PC program GIF2JPG produces files that are
totally incompatible with our programs.  They use a proprietary format that is
an amalgam of GIF and JPEG representations.  However, you can force GIF2JPG
to produce compatible files with its -j switch, and their decompression
program JPG2GIF can read our files (at least ones produced with our default
option settings).

Unfortunately, many commercial JPEG implementations are also incompatible as
of this writing, especially programs released before summer 1991.  The root of
the problem is that the ISO JPEG committee failed to specify a concrete file
format.  Some vendors "filled in the blanks" on their own, creating
proprietary formats that no one else could read.  (For example, none of the
early commercial JPEG implementations for the Macintosh were able to exchange
compressed files.)

The file format we have adopted is called JFIF (see REFERENCES).  This format
has been agreed to by a number of major commercial JPEG vendors, and we expect
that it will become the de facto standard.  JFIF is a minimal representation;
work is also going forward to incorporate JPEG compression into the TIFF
standard, for use in "high end" applications that need to record a lot of
additional data about an image.  We intend to support JPEG-in-TIFF in the
future.  We hope that these two formats will be sufficient and that other,
incompatible JPEG file formats will not proliferate.

Indeed, part of the reason for developing and releasing this free software is
to help force rapid convergence to de facto standards for JPEG file formats.
SUPPORT STANDARD, NON-PROPRIETARY FORMATS: demand JFIF or JPEG-in-TIFF!


REFERENCES
==========

The best and most readily available introduction to the JPEG compression
algorithm is Wallace's article in the April '91 CACM:
        Wallace, Gregory K.  "The JPEG Still Picture Compression Standard",
        Communications of the ACM, April 1991 (vol. 34 no. 4), pp. 30-44.
(Adjacent articles in that issue discuss MPEG motion picture compression,
applications of JPEG, and related topics.)  We highly recommend reading that
article before trying to understand the innards of any JPEG software.
If you don't have the CACM issue handy, a PostScript file containing a revised
version of the article is available at ftp.uu.net, graphics/jpeg/wallace.ps.Z.
The file (actually a preprint for an article to appear in IEEE Trans. Consumer
Electronics) omits the sample images that appeared in CACM, but it includes
corrections and some added material.  Note: the Wallace article is copyright
ACM and IEEE, and it may not be used for commercial purposes.

For more detail about the JPEG standard you pretty much have to go to the
draft standard (which is not nearly as intelligible as Wallace's article).
The standard is not now available electronically; you must order a paper copy
through ISO.  In the US, copies may be ordered from ANSI Sales at (212)
642-4900.  The standard is divided into two parts: Part 1 is the actual
specification, and Part 2 covers compliance testing methods.  The current
"committee draft" version of Part 1 is titled "Digital Compression and Coding
of Continuous-tone Still Images, Part 1: Requirements and guidelines" and has
document number ISO/IEC CD 10918-1.  (The alternate number SC2 N2215 should
also be mentioned when ordering.)  This draft is expected to be superseded by
the Draft International Standard version around the end of November 1991.
Ordering info will be the same as above, but replace "CD" with "DIS" in the
document number (alternate number not yet known).  The committee draft of
Part 2 is expected to be available around the end of December 1991.  It will
be titled "Digital Compression and Coding of Continuous-tone Still Images,
Part 2: Compliance testing" and will have document number ISO/IEC CD 10918-2
(alternate number not yet known).

The JPEG standard does not specify all details of an interchangeable file
format.  For the omitted details we follow the "JFIF" conventions, revision
1.01.  A copy of the JFIF spec is available from:
        Literature Department
        C-Cube Microsystems, Inc.
        399A West Trimble Road
        San Jose, CA  95131
        (408) 944-6300
The same source can supply copies of the draft JPEG-in-TIFF documents
(Appendixes O and P to the TIFF spec).  PostScript versions of these
documents can also be obtained by e-mail from the C-Cube mail server,
netlib@c3.pla.ca.us.  Send the message "send jfif_ps from jpeg" to obtain the
JFIF document; "send app_o_ps from jpeg" and "send app_p_ps from jpeg" will
produce the TIFF documents.  Send the message "help" if you have trouble.


LEGAL ISSUES
============

The authors make NO WARRANTY or representation, either express or implied,
with respect to this software, its quality, accuracy, merchantability, or
fitness for a particular purpose.  This software is provided "AS IS", and you,
its user, assume the entire risk as to its quality and accuracy.

This software is copyright (C) 1991, 1992, Thomas G. Lane.
All Rights Reserved except as specified below.

Permission is hereby granted to use, copy, modify, and distribute this
software (or portions thereof) for any purpose, without fee, subject to these
conditions:
(1) If any part of the source code for this software is distributed, then this
README file must be included, with this copyright and no-warranty notice
unaltered; and any additions, deletions, or changes to the original files
must be clearly indicated in accompanying documentation.
(2) If only executable code is distributed, then the accompanying
documentation must state that "this software is based in part on the work of
the Independent JPEG Group".
(3) Permission for use of this software is granted only if the user accepts
full responsibility for any undesirable consequences; the authors accept
NO LIABILITY for damages of any kind.

Permission is NOT granted for the use of any author's name or author's company
name in advertising or publicity relating to this software or products derived
from it.  This software may be referred to only as "the Independent JPEG
Group's software".

We specifically permit and encourage the use of this software as the basis of
commercial products, provided that all warranty or liability claims are
assumed by the product vendor.

It appears that the arithmetic coding option of the JPEG spec is covered by
patents owned by IBM and AT&T, as well as a pending Japanese patent of
Mitsubishi.  Hence arithmetic coding cannot legally be used without obtaining
one or more licenses.  For this reason, support for arithmetic coding has been
removed from the free JPEG software.  (Since arithmetic coding provides only a
marginal gain over the unpatented Huffman mode, it is unlikely that very many
people will choose to use it.  If you do obtain the necessary licenses,
contact jpeg-info@uunet.uu.net for a copy of our arithmetic coding modules.)
So far as we are aware, there are no patent restrictions on the remaining
code.


We are required to state that
    "The Graphics Interchange Format(c) is the Copyright property of
    CompuServe Incorporated.  GIF(sm) is a Service Mark property of
    CompuServe Incorporated."


TO DO
=====

Many of the modules need fleshing out to provide more complete
implementations, or to provide faster paths for common cases.
Improving the speed will be the next big work item for the JPEG group.

We'd appreciate it if people would compile and check out the code on as wide a
variety of systems as possible, and report any portability problems
encountered (with solutions, if possible).  Checks of file compatibility with
other JPEG implementations would also be of interest.  Finally, we would
appreciate code profiles showing where the most time is spent, especially on
unusual systems.

Please send bug reports, offers of help, etc. to jpeg-info@uunet.uu.net.

USAGE instructions for the Independent JPEG Group's JPEG software
=================================================================

GENERAL USAGE

We provide two programs, cjpeg to compress an image file into JPEG format,
and djpeg to decompress a JPEG file back into a conventional image format.

On Unix-like systems, you say:
        cjpeg [switches] [imagefile] >jpegfile
or
        djpeg [switches] [jpegfile]  >imagefile
The programs read the specified input file, or standard input if none is
named.  They always write to standard output (with trace/error messages to
standard error).  These conventions are handy for piping images between
programs.

On most non-Unix systems, you say:
        cjpeg [switches] imagefile jpegfile
or
        djpeg [switches] jpegfile  imagefile
i.e., both the input and output files are named on the command line.  This
style is a little more foolproof, and it loses no functionality if you don't
have pipes.  (You can get this style on Unix too, if you prefer, by defining
TWO_FILE_COMMANDLINE when you compile the programs; see SETUP.)

The currently supported image file formats are: PPM (PBMPLUS color format),
PGM (PBMPLUS gray-scale format), GIF and Targa. cjpeg recognizes the input
image format automatically, with the exception of some Targa-format files.  You
have to tell djpeg which format to generate (PPM by default).

The only JPEG file format currently supported is the JFIF format.  Support for
the TIFF/JPEG format will probably be added at some future date.


CJPEG DETAILS

The command line switches for cjpeg are:

        -Q quality      Scale quantization tables to adjust image quality.
                        Quality is 0 (worst) to 100 (best); default is 75.
                        (See below for more info.)

        -o              Perform optimization of entropy encoding parameters.
                        Without this, default encoding parameters are used.
                        -o usually makes the JPEG file a little smaller, but
                        cjpeg runs somewhat slower and needs much more memory.
                        Image quality and speed of decompression are unaffected
                        by -o.

        -T              Input file is Targa format.  Targa files that contain
                        an "identification" field will not be automatically
                        recognized by cjpeg; for such files you must specify
                        -T to force cjpeg to treat the input as Targa format.

        -I              Generate noninterleaved JPEG file (not yet supported).

        -a              Use arithmetic coding rather than Huffman coding.
                        (Not currently supported for legal reasons.)

        -d              Enable debug printout.  More -d's give more printout.
                        Also, version information is printed at startup.

        -m memory       Set limit for amount of memory to use in processing
                        large images.  Value is in thousands of bytes, or
                        millions of bytes if "M" is attached to the number.
                        For example, -m 4m selects 4000000 bytes.  If more
                        space is needed, temporary files will be used.

The -Q switch lets you trade off compressed file size against quality of the
reconstructed image: the higher the -Q setting, the larger the JPEG file, and
the closer the output image will be to the original input.  Normally you want
to use the lowest -Q setting (smallest file) that decompresses into something
visually indistinguishable from the original image.  For this purpose the -Q
setting should be between 50 and 95; the default of 75 is often about right.
If you see defects at -Q 75, then go up 5 or 10 counts at a time until you are
happy with the output image.  (The optimal setting will vary from one image to
another.)

-Q 100 will generate a quantization table of all 1's, eliminating loss in the
quantization step (but there is still information loss in subsampling, as well
as roundoff error).  This setting is mainly of interest for experimental
purposes.  -Q values above about 95 are NOT recommended for normal use; the
compressed file size goes up dramatically for hardly any gain in output image
quality.

In the other direction, -Q values below 50 will produce very small files of
low image quality.  Settings around 5 to 10 might be useful in preparing an
index of a large image library, for example.  Try -Q 2 (or so) for some
amusing Cubist effects.  (Note: -Q values below about 25 generate 2-byte
quantization tables, which are considered optional in the JPEG standard.
cjpeg emits a warning message when you give such a -Q value, because some
commercial JPEG programs may be unable to decode the resulting file.)


DJPEG DETAILS

The command line switches for djpeg are:

        -G              Select GIF output format (implies -q, with default
                        of 256 colors).

        -P              Select PPM or PGM output format (this is the default).
                        PGM is emitted if the JPEG file is gray-scale or if -g
                        is specified.

        -R              Select RLE output format.  Requires URT library.

        -T              Select Targa output format.  Gray-scale format is
                        emitted if the JPEG file is gray-scale or if -g is
                        specified; otherwise, colormapped format is emitted
                        if -q is specified; otherwise, 24-bit full-color
                        format is emitted.

        -g              Force gray-scale output even if input is color.

        -q N            Quantize to N colors.  This reduces the number of
                        colors in the output image so that it can be displayed
                        on a colormapped display or stored in a colormapped
                        file format.  For example, if you have an 8-bit
                        display, you'd need to quantize to 256 or fewer colors.

        -D              Do not use dithering in color quantization.
                        By default, Floyd-Steinberg dithering is applied when
                        quantizing colors, but on some images dithering may
                        result in objectionable "graininess".  If that
                        happens, you can turn off dithering with -D.
                        -D is ignored unless you also say -q or -G.

        -1              Use one-pass instead of two-pass color quantization.
                        The one-pass method is faster and needs less memory,
                        but it produces a lower-quality image.
                        -1 is ignored unless you also say -q or -G.  Also,
                        the one-pass method is always used for gray-scale
                        output (the two-pass method is no improvement then).

        -b              Perform cross-block smoothing.  This is quite
                        memory-intensive and only seems to improve the image
                        at very low quality settings (-Q 10 to 20 or so).
                        At normal -Q settings it may make the image worse.

        -d              Enable debug printout.  More -d's give more printout.
                        Also, version information is printed at startup.

        -m memory       Set limit for amount of memory to use in processing
                        large images.  Value is in thousands of bytes, or
                        millions of bytes if "M" is attached to the number.
                        For example, -m 4m selects 4000000 bytes.  If more
                        space is needed, temporary files will be used.


HINTS

Avoid running an image through a series of JPEG compression/decompression
cycles.  Image quality loss will accumulate; after ten or so cycles the image
may be noticeably worse than it was after one cycle.  It's best to use a
lossless format while manipulating an image, then convert to JPEG format when
you are ready to file the image away.

The -o option to cjpeg is worth using when you are making a "final" version
for posting or archiving.  It's also a win when you are using low -Q settings
to make very small JPEG files; the percentage improvement is often a lot more
than it is on larger files.

The default memory usage limit (-m) is set when the software is compiled.
If you get an "insufficient memory" error, try specifying a smaller -m value,
even -m 0 to use the absolute minimum space.  You may want to recompile with
a smaller default value if this happens often.

djpeg with two-pass color quantization requires a good deal of space; on
MS-DOS machines it may run out of memory even with -m 0.  In that case you
can still decompress, with some loss of image quality, by specifying -1
for one-pass quantization.

If more space is needed than will fit in the available main memory (as
determined by -m), temporary files will be used.  The temporary files are often
rather large: in typical cases they occupy three bytes per pixel, for example
3*800*600 = 1.44Mb for an 800x600 image.  If you don't have enough free disk
space, leave out -o (for cjpeg) or specify -1 (for djpeg).
00000000  54 68 65 20 49 6e 64 65  70 65 6e 64 65 6e 74 20  |The Independent |
00000010  4a 50 45 47 20 47 72 6f  75 70 27 73 20 4a 50 45  |JPEG Group's JPE|
00000020  47 20 73 6f 66 74 77 61  72 65 0a 3d 3d 3d 3d 3d  |G software.=====|
00000030  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000050  3d 3d 3d 3d 3d 0a 0a 52  45 41 44 4d 45 20 66 6f  |=====..README fo|
00000060  72 20 72 65 6c 65 61 73  65 20 33 20 6f 66 20 20  |r release 3 of  |
00000070  31 37 2d 4d 61 72 2d 39  32 0a 3d 3d 3d 3d 3d 3d  |17-Mar-92.======|
00000080  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000090  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 0a 0a 54 68  |============..Th|
000000a0  69 73 20 64 69 73 74 72  69 62 75 74 69 6f 6e 20  |is distribution |
000000b0  63 6f 6e 74 61 69 6e 73  20 74 68 65 20 74 68 69  |contains the thi|
000000c0  72 64 20 6f 66 66 69 63  69 61 6c 20 72 65 6c 65  |rd official rele|
000000d0  61 73 65 20 6f 66 20 74  68 65 20 49 6e 64 65 70  |ase of the Indep|
000000e0  65 6e 64 65 6e 74 20 4a  50 45 47 0a 47 72 6f 75  |endent JPEG.Grou|
000000f0  70 27 73 20 66 72 65 65  20 4a 50 45 47 20 73 6f  |p's free JPEG so|
00000100  66 74 77 61 72 65 2e 20  20 59 6f 75 20 61 72 65  |ftware.  You are|
00000110  20 77 65 6c 63 6f 6d 65  20 74 6f 20 72 65 64 69  | welcome to redi|
00000120  73 74 72 69 62 75 74 65  20 74 68 69 73 20 73 6f  |stribute this so|
00000130  66 74 77 61 72 65 20 61  6e 64 0a 74 6f 20 75 73  |ftware and.to us|
00000140  65 20 69 74 20 66 6f 72  20 61 6e 79 20 70 75 72  |e it for any pur|
00000150  70 6f 73 65 2c 20 73 75  62 6a 65 63 74 20 74 6f  |pose, subject to|
00000160  20 74 68 65 20 63 6f 6e  64 69 74 69 6f 6e 73 20  | the conditions |
00000170  75 6e 64 65 72 20 4c 45  47 41 4c 20 49 53 53 55  |under LEGAL ISSU|
00000180  45 53 2c 20 62 65 6c 6f  77 2e 0a 0a 46 6f 72 20  |ES, below...For |
00000190  75 73 61 67 65 20 69 6e  73 74 72 75 63 74 69 6f  |usage instructio|
000001a0  6e 73 2c 20 73 65 65 20  73 65 63 74 69 6f 6e 20  |ns, see section |
000001b0  55 53 41 47 45 2e 0a 0a  54 68 69 73 20 73 6f 66  |USAGE...This sof|
000001c0  74 77 61 72 65 20 69 73  20 73 74 69 6c 6c 20 75  |tware is still u|
000001d0  6e 64 65 72 67 6f 69 6e  67 20 72 65 76 69 73 69  |ndergoing revisi|
000001e0  6f 6e 2e 20 20 55 70 64  61 74 65 64 20 76 65 72  |on.  Updated ver|
000001f0  73 69 6f 6e 73 20 6d 61  79 20 62 65 20 6f 62 74  |sions may be obt|
00000200  61 69 6e 65 64 0a 62 79  20 46 54 50 20 6f 72 20  |ained.by FTP or |
00000210  55 55 43 50 20 74 6f 20  55 55 4e 45 54 20 61 6e  |UUCP to UUNET an|
00000220  64 20 6f 74 68 65 72 20  61 72 63 68 69 76 65 20  |d other archive |
00000230  73 69 74 65 73 3b 20 73  65 65 20 41 52 43 48 49  |sites; see ARCHI|
00000240  56 45 20 4c 4f 43 41 54  49 4f 4e 53 20 62 65 6c  |VE LOCATIONS bel|
00000250  6f 77 0a 66 6f 72 20 64  65 74 61 69 6c 73 2e 0a  |ow.for details..|
00000260  0a 49 66 20 79 6f 75 20  69 6e 74 65 6e 64 20 74  |.If you intend t|
00000270  6f 20 62 65 63 6f 6d 65  20 61 20 73 65 72 69 6f  |o become a serio|
00000280  75 73 20 75 73 65 72 20  6f 66 20 74 68 69 73 20  |us user of this |
00000290  73 6f 66 74 77 61 72 65  2c 20 70 6c 65 61 73 65  |software, please|
000002a0  20 63 6f 6e 74 61 63 74  0a 6a 70 65 67 2d 69 6e  | contact.jpeg-in|
000002b0  66 6f 40 75 75 6e 65 74  2e 75 75 2e 6e 65 74 20  |fo@uunet.uu.net |
000002c0  74 6f 20 62 65 20 61 64  64 65 64 20 74 6f 20 6f  |to be added to o|
000002d0  75 72 20 65 6c 65 63 74  72 6f 6e 69 63 20 6d 61  |ur electronic ma|
000002e0  69 6c 69 6e 67 20 6c 69  73 74 2e 20 20 54 68 65  |iling list.  The|
000002f0  6e 0a 79 6f 75 27 6c 6c  20 62 65 20 6e 6f 74 69  |n.you'll be noti|
00000300  66 69 65 64 20 6f 66 20  75 70 64 61 74 65 73 20  |fied of updates |
00000310  61 6e 64 20 68 61 76 65  20 61 20 63 68 61 6e 63  |and have a chanc|
00000320  65 20 74 6f 20 70 61 72  74 69 63 69 70 61 74 65  |e to participate|
00000330  20 69 6e 20 64 69 73 63  75 73 73 69 6f 6e 73 2c  | in discussions,|
00000340  0a 65 74 63 2e 0a 0a 54  68 69 73 20 73 6f 66 74  |.etc...This soft|
00000350  77 61 72 65 20 69 73 20  74 68 65 20 77 6f 72 6b  |ware is the work|
00000360  20 6f 66 20 54 6f 6d 20  4c 61 6e 65 2c 20 50 68  | of Tom Lane, Ph|
00000370  69 6c 69 70 20 47 6c 61  64 73 74 6f 6e 65 2c 20  |ilip Gladstone, |
00000380  4c 75 69 73 20 4f 72 74  69 7a 2c 0a 4c 65 65 20  |Luis Ortiz,.Lee |
00000390  43 72 6f 63 6b 65 72 2c  20 47 65 27 20 57 65 69  |Crocker, Ge' Wei|
000003a0  6a 65 72 73 2c 20 61 6e  64 20 6f 74 68 65 72 20  |jers, and other |
000003b0  6d 65 6d 62 65 72 73 20  6f 66 20 74 68 65 20 49  |members of the I|
000003c0  6e 64 65 70 65 6e 64 65  6e 74 20 4a 50 45 47 20  |ndependent JPEG |
000003d0  47 72 6f 75 70 2e 0a 0a  0a 44 49 53 43 4c 41 49  |Group....DISCLAI|
000003e0  4d 45 52 0a 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 0a 0a  |MER.==========..|
000003f0  54 48 49 53 20 53 4f 46  54 57 41 52 45 20 49 53  |THIS SOFTWARE IS|
00000400  20 4e 4f 54 20 43 4f 4d  50 4c 45 54 45 20 4e 4f  | NOT COMPLETE NO|
00000410  52 20 46 55 4c 4c 59 20  44 45 42 55 47 47 45 44  |R FULLY DEBUGGED|
00000420  2e 20 20 49 74 20 69 73  20 6e 6f 74 20 67 75 61  |.  It is not gua|
00000430  72 61 6e 74 65 65 64 20  74 6f 20 62 65 0a 75 73  |ranteed to be.us|
00000440  65 66 75 6c 20 66 6f 72  20 61 6e 79 74 68 69 6e  |eful for anythin|
00000450  67 2c 20 6e 6f 72 20 74  6f 20 62 65 20 63 6f 6d  |g, nor to be com|
00000460  70 61 74 69 62 6c 65 20  77 69 74 68 20 73 75 62  |patible with sub|
00000470  73 65 71 75 65 6e 74 20  72 65 6c 65 61 73 65 73  |sequent releases|
00000480  2c 20 6e 6f 72 20 74 6f  20 62 65 0a 61 6e 20 61  |, nor to be.an a|
00000490  63 63 75 72 61 74 65 20  69 6d 70 6c 65 6d 65 6e  |ccurate implemen|
000004a0  74 61 74 69 6f 6e 20 6f  66 20 74 68 65 20 4a 50  |tation of the JP|
000004b0  45 47 20 73 74 61 6e 64  61 72 64 2e 20 20 28 53  |EG standard.  (S|
000004c0  65 65 20 4c 45 47 41 4c  20 49 53 53 55 45 53 20  |ee LEGAL ISSUES |
000004d0  66 6f 72 20 65 76 65 6e  0a 6d 6f 72 65 20 64 69  |for even.more di|
000004e0  73 63 6c 61 69 6d 65 72  73 2e 29 0a 0a 50 6c 65  |sclaimers.)..Ple|
000004f0  61 73 65 20 72 65 70 6f  72 74 20 61 6e 79 20 70  |ase report any p|
00000500  72 6f 62 6c 65 6d 73 20  77 69 74 68 20 74 68 69  |roblems with thi|
00000510  73 20 73 6f 66 74 77 61  72 65 20 74 6f 20 6a 70  |s software to jp|
00000520  65 67 2d 69 6e 66 6f 40  75 75 6e 65 74 2e 75 75  |eg-info@uunet.uu|
00000530  2e 6e 65 74 2e 0a 0a 0a  57 48 41 54 27 53 20 48  |.net....WHAT'S H|
00000540  45 52 45 0a 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 0a  |ERE.===========.|
00000550  0a 54 68 69 73 20 64 69  73 74 72 69 62 75 74 69  |.This distributi|
00000560  6f 6e 20 63 6f 6e 74 61  69 6e 73 20 63 6f 6d 70  |on contains comp|
00000570  69 6c 65 64 20 43 20 73  6f 66 74 77 61 72 65 20  |iled C software |
00000580  74 6f 20 69 6d 70 6c 65  6d 65 6e 74 20 4a 50 45  |to implement JPE|
00000590  47 20 69 6d 61 67 65 0a  63 6f 6d 70 72 65 73 73  |G image.compress|
000005a0  69 6f 6e 20 61 6e 64 20  64 65 63 6f 6d 70 72 65  |ion and decompre|
000005b0  73 73 69 6f 6e 2e 20 20  4a 50 45 47 20 28 70 72  |ssion.  JPEG (pr|
000005c0  6f 6e 6f 75 6e 63 65 64  20 22 6a 61 79 2d 70 65  |onounced "jay-pe|
000005d0  67 22 29 20 69 73 20 61  20 73 74 61 6e 64 61 72  |g") is a standar|
000005e0  64 69 7a 65 64 0a 63 6f  6d 70 72 65 73 73 69 6f  |dized.compressio|
000005f0  6e 20 6d 65 74 68 6f 64  20 66 6f 72 20 66 75 6c  |n method for ful|
00000600  6c 2d 63 6f 6c 6f 72 20  61 6e 64 20 67 72 61 79  |l-color and gray|
00000610  2d 73 63 61 6c 65 20 69  6d 61 67 65 73 2e 20 20  |-scale images.  |
00000620  4a 50 45 47 20 69 73 20  69 6e 74 65 6e 64 65 64  |JPEG is intended|
00000630  20 66 6f 72 0a 22 72 65  61 6c 2d 77 6f 72 6c 64  | for."real-world|
00000640  22 20 73 63 65 6e 65 73  3b 20 63 61 72 74 6f 6f  |" scenes; cartoo|
00000650  6e 73 20 61 6e 64 20 6f  74 68 65 72 20 6e 6f 6e  |ns and other non|
00000660  2d 72 65 61 6c 69 73 74  69 63 20 69 6d 61 67 65  |-realistic image|
00000670  73 20 61 72 65 20 6e 6f  74 20 69 74 73 20 73 74  |s are not its st|
00000680  72 6f 6e 67 0a 73 75 69  74 2e 20 20 4a 50 45 47  |rong.suit.  JPEG|
00000690  20 69 73 20 6c 6f 73 73  79 2c 20 6d 65 61 6e 69  | is lossy, meani|
000006a0  6e 67 20 74 68 61 74 20  74 68 65 20 6f 75 74 70  |ng that the outp|
000006b0  75 74 20 69 6d 61 67 65  20 69 73 20 6e 6f 74 20  |ut image is not |
000006c0  6e 65 63 65 73 73 61 72  69 6c 79 0a 69 64 65 6e  |necessarily.iden|
000006d0  74 69 63 61 6c 20 74 6f  20 74 68 65 20 69 6e 70  |tical to the inp|
000006e0  75 74 20 69 6d 61 67 65  2e 20 20 48 65 6e 63 65  |ut image.  Hence|
000006f0  20 79 6f 75 20 73 68 6f  75 6c 64 20 6e 6f 74 20  | you should not |
00000700  75 73 65 20 4a 50 45 47  20 69 66 20 79 6f 75 20  |use JPEG if you |
00000710  68 61 76 65 20 74 6f 0a  68 61 76 65 20 69 64 65  |have to.have ide|
00000720  6e 74 69 63 61 6c 20 6f  75 74 70 75 74 20 62 69  |ntical output bi|
00000730  74 73 2e 20 20 48 6f 77  65 76 65 72 2c 20 6f 6e  |ts.  However, on|
00000740  20 74 79 70 69 63 61 6c  20 69 6d 61 67 65 73 20  | typical images |
00000750  6f 66 20 72 65 61 6c 2d  77 6f 72 6c 64 20 73 63  |of real-world sc|
00000760  65 6e 65 73 2c 0a 76 65  72 79 20 67 6f 6f 64 20  |enes,.very good |
00000770  63 6f 6d 70 72 65 73 73  69 6f 6e 20 6c 65 76 65  |compression leve|
00000780  6c 73 20 63 61 6e 20 62  65 20 6f 62 74 61 69 6e  |ls can be obtain|
00000790  65 64 20 77 69 74 68 20  6e 6f 20 76 69 73 69 62  |ed with no visib|
000007a0  6c 65 20 63 68 61 6e 67  65 2c 20 61 6e 64 0a 61  |le change, and.a|
000007b0  6d 61 7a 69 6e 67 6c 79  20 68 69 67 68 20 63 6f  |mazingly high co|
000007c0  6d 70 72 65 73 73 69 6f  6e 20 6c 65 76 65 6c 73  |mpression levels|
000007d0  20 63 61 6e 20 62 65 20  6f 62 74 61 69 6e 65 64  | can be obtained|
000007e0  20 69 66 20 79 6f 75 20  63 61 6e 20 74 6f 6c 65  | if you can tole|
000007f0  72 61 74 65 20 61 0a 6c  6f 77 2d 71 75 61 6c 69  |rate a.low-quali|
00000800  74 79 20 69 6d 61 67 65  2e 20 20 46 6f 72 20 6d  |ty image.  For m|
00000810  6f 72 65 20 64 65 74 61  69 6c 73 2c 20 73 65 65  |ore details, see|
00000820  20 74 68 65 20 72 65 66  65 72 65 6e 63 65 73 2c  | the references,|
00000830  20 6f 72 20 6a 75 73 74  20 65 78 70 65 72 69 6d  | or just experim|
00000840  65 6e 74 0a 77 69 74 68  20 76 61 72 69 6f 75 73  |ent.with various|
00000850  20 63 6f 6d 70 72 65 73  73 69 6f 6e 20 73 65 74  | compression set|
00000860  74 69 6e 67 73 2e 0a 0a  54 68 65 20 73 6f 66 74  |tings...The soft|
00000870  77 61 72 65 20 69 6d 70  6c 65 6d 65 6e 74 73 20  |ware implements |
00000880  4a 50 45 47 20 62 61 73  65 6c 69 6e 65 20 61 6e  |JPEG baseline an|
00000890  64 20 65 78 74 65 6e 64  65 64 2d 73 65 71 75 65  |d extended-seque|
000008a0  6e 74 69 61 6c 20 63 6f  6d 70 72 65 73 73 69 6f  |ntial compressio|
000008b0  6e 0a 70 72 6f 63 65 73  73 65 73 2e 20 20 50 72  |n.processes.  Pr|
000008c0  6f 76 69 73 69 6f 6e 20  69 73 20 6d 61 64 65 20  |ovision is made |
000008d0  66 6f 72 20 73 75 70 70  6f 72 74 69 6e 67 20 61  |for supporting a|
000008e0  6c 6c 20 76 61 72 69 61  6e 74 73 20 6f 66 20 74  |ll variants of t|
000008f0  68 65 73 65 20 70 72 6f  63 65 73 73 65 73 2c 0a  |hese processes,.|
00000900  61 6c 74 68 6f 75 67 68  20 73 6f 6d 65 20 75 6e  |although some un|
00000910  63 6f 6d 6d 6f 6e 20 70  61 72 61 6d 65 74 65 72  |common parameter|
00000920  20 73 65 74 74 69 6e 67  73 20 61 72 65 6e 27 74  | settings aren't|
00000930  20 69 6d 70 6c 65 6d 65  6e 74 65 64 20 79 65 74  | implemented yet|
00000940  2e 20 20 46 6f 72 20 6c  65 67 61 6c 0a 72 65 61  |.  For legal.rea|
00000950  73 6f 6e 73 2c 20 77 65  20 61 72 65 20 6e 6f 74  |sons, we are not|
00000960  20 64 69 73 74 72 69 62  75 74 69 6e 67 20 63 6f  | distributing co|
00000970  64 65 20 66 6f 72 20 74  68 65 20 61 72 69 74 68  |de for the arith|
00000980  6d 65 74 69 63 2d 63 6f  64 69 6e 67 20 70 72 6f  |metic-coding pro|
00000990  63 65 73 73 3b 20 73 65  65 0a 4c 45 47 41 4c 20  |cess; see.LEGAL |
000009a0  49 53 53 55 45 53 2e 20  20 41 74 20 70 72 65 73  |ISSUES.  At pres|
000009b0  65 6e 74 20 77 65 20 68  61 76 65 20 6d 61 64 65  |ent we have made|
000009c0  20 6e 6f 20 70 72 6f 76  69 73 69 6f 6e 20 66 6f  | no provision fo|
000009d0  72 20 73 75 70 70 6f 72  74 69 6e 67 20 74 68 65  |r supporting the|
000009e0  0a 70 72 6f 67 72 65 73  73 69 76 65 2c 20 68 69  |.progressive, hi|
000009f0  65 72 61 72 63 68 69 63  61 6c 2c 20 6f 72 20 6c  |erarchical, or l|
00000a00  6f 73 73 6c 65 73 73 20  70 72 6f 63 65 73 73 65  |ossless processe|
00000a10  73 20 64 65 66 69 6e 65  64 20 69 6e 20 74 68 65  |s defined in the|
00000a20  20 73 74 61 6e 64 61 72  64 2e 0a 0a 54 68 65 20  | standard...The |
00000a30  70 72 65 73 65 6e 74 20  73 6f 66 74 77 61 72 65  |present software|
00000a40  20 69 73 20 6e 6f 74 20  66 61 72 20 62 65 79 6f  | is not far beyo|
00000a50  6e 64 20 74 68 65 20 70  72 6f 74 6f 74 79 70 65  |nd the prototype|
00000a60  20 73 74 61 67 65 2e 20  20 49 74 20 64 6f 65 73  | stage.  It does|
00000a70  20 6e 6f 74 0a 73 75 70  70 6f 72 74 20 61 6c 6c  | not.support all|
00000a80  20 70 6f 73 73 69 62 6c  65 20 76 61 72 69 61 6e  | possible varian|
00000a90  74 73 20 6f 66 20 74 68  65 20 4a 50 45 47 20 73  |ts of the JPEG s|
00000aa0  74 61 6e 64 61 72 64 2c  20 61 6e 64 20 73 6f 6d  |tandard, and som|
00000ab0  65 20 66 75 6e 63 74 69  6f 6e 73 20 68 61 76 65  |e functions have|
00000ac0  0a 72 61 74 68 65 72 20  73 6c 6f 77 20 61 6e 64  |.rather slow and|
00000ad0  2f 6f 72 20 63 72 75 64  65 20 69 6d 70 6c 65 6d  |/or crude implem|
00000ae0  65 6e 74 61 74 69 6f 6e  73 2e 20 20 48 6f 77 65  |entations.  Howe|
00000af0  76 65 72 2c 20 69 74 20  69 73 20 75 73 65 66 75  |ver, it is usefu|
00000b00  6c 20 61 6c 72 65 61 64  79 2e 0a 0a 54 68 65 20  |l already...The |
00000b10  65 6d 70 68 61 73 69 73  20 69 6e 20 64 65 73 69  |emphasis in desi|
00000b20  67 6e 69 6e 67 20 74 68  69 73 20 73 6f 66 74 77  |gning this softw|
00000b30  61 72 65 20 68 61 73 20  62 65 65 6e 20 6f 6e 20  |are has been on |
00000b40  61 63 68 69 65 76 69 6e  67 20 70 6f 72 74 61 62  |achieving portab|
00000b50  69 6c 69 74 79 20 61 6e  64 0a 66 6c 65 78 69 62  |ility and.flexib|
00000b60  69 6c 69 74 79 2c 20 77  68 69 6c 65 20 61 6c 73  |ility, while als|
00000b70  6f 20 6d 61 6b 69 6e 67  20 69 74 20 66 61 73 74  |o making it fast|
00000b80  20 65 6e 6f 75 67 68 20  74 6f 20 62 65 20 75 73  | enough to be us|
00000b90  65 66 75 6c 2e 20 20 57  65 20 68 61 76 65 20 6e  |eful.  We have n|
00000ba0  6f 74 20 79 65 74 0a 75  6e 64 65 72 74 61 6b 65  |ot yet.undertake|
00000bb0  6e 20 73 65 72 69 6f 75  73 20 70 65 72 66 6f 72  |n serious perfor|
00000bc0  6d 61 6e 63 65 20 6d 65  61 73 75 72 65 6d 65 6e  |mance measuremen|
00000bd0  74 20 6f 72 20 74 75 6e  69 6e 67 3b 20 77 65 20  |t or tuning; we |
00000be0  69 6e 74 65 6e 64 20 74  6f 20 64 6f 20 73 6f 20  |intend to do so |
00000bf0  69 6e 0a 74 68 65 20 66  75 74 75 72 65 2e 0a 0a  |in.the future...|
00000c00  49 6e 20 70 61 72 74 69  63 75 6c 61 72 2c 20 77  |In particular, w|
00000c10  65 20 77 65 6c 63 6f 6d  65 20 74 68 65 20 75 73  |e welcome the us|
00000c20  65 20 6f 66 20 74 68 69  73 20 73 6f 66 74 77 61  |e of this softwa|
00000c30  72 65 20 61 73 20 61 20  63 6f 6d 70 6f 6e 65 6e  |re as a componen|
00000c40  74 20 6f 66 20 63 6f 6d  6d 65 72 63 69 61 6c 0a  |t of commercial.|
00000c50  70 72 6f 64 75 63 74 73  3b 20 6e 6f 20 72 6f 79  |products; no roy|
00000c60  61 6c 74 79 20 69 73 20  72 65 71 75 69 72 65 64  |alty is required|
00000c70  2e 0a 0a 0a 41 52 43 48  49 56 45 20 4c 4f 43 41  |....ARCHIVE LOCA|
00000c80  54 49 4f 4e 53 0a 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |TIONS.==========|
00000c90  3d 3d 3d 3d 3d 3d 3d 0a  0a 54 68 65 20 22 6f 66  |=======..The "of|
00000ca0  66 69 63 69 61 6c 22 20  61 72 63 68 69 76 65 20  |ficial" archive |
00000cb0  73 69 74 65 20 66 6f 72  20 74 68 69 73 20 73 6f  |site for this so|
00000cc0  66 74 77 61 72 65 20 28  69 6e 63 6c 75 64 69 6e  |ftware (includin|
00000cd0  67 20 74 68 65 20 73 6f  75 72 63 65 29 20 69 73  |g the source) is|
00000ce0  0a 66 74 70 2e 75 75 2e  6e 65 74 20 28 49 6e 74  |.ftp.uu.net (Int|
00000cf0  65 72 6e 65 74 20 61 64  64 72 65 73 73 20 31 33  |ernet address 13|
00000d00  37 2e 33 39 2e 31 2e 39  20 6f 72 20 31 39 32 2e  |7.39.1.9 or 192.|
00000d10  34 38 2e 39 36 2e 39 29  2e 20 20 54 68 65 20 6d  |48.96.9).  The m|
00000d20  6f 73 74 20 72 65 63 65  6e 74 0a 72 65 6c 65 61  |ost recent.relea|
00000d30  73 65 64 20 76 65 72 73  69 6f 6e 20 63 61 6e 20  |sed version can |
00000d40  61 6c 77 61 79 73 20 62  65 20 66 6f 75 6e 64 20  |always be found |
00000d50  74 68 65 72 65 20 69 6e  20 64 69 72 65 63 74 6f  |there in directo|
00000d60  72 79 20 67 72 61 70 68  69 63 73 2f 6a 70 65 67  |ry graphics/jpeg|
00000d70  2e 20 20 54 68 69 73 0a  70 61 72 74 69 63 75 6c  |.  This.particul|
00000d80  61 72 20 76 65 72 73 69  6f 6e 20 77 69 6c 6c 20  |ar version will |
00000d90  62 65 20 61 72 63 68 69  76 65 64 20 61 73 20 6a  |be archived as j|
00000da0  70 65 67 73 72 63 2e 76  33 2e 74 61 72 2e 5a 2e  |pegsrc.v3.tar.Z.|
00000db0  20 20 49 66 20 79 6f 75  20 61 72 65 20 6f 6e 20  |  If you are on |
00000dc0  74 68 65 0a 49 6e 74 65  72 6e 65 74 2c 20 79 6f  |the.Internet, yo|
00000dd0  75 20 63 61 6e 20 72 65  74 72 69 65 76 65 20 66  |u can retrieve f|
00000de0  69 6c 65 73 20 66 72 6f  6d 20 55 55 4e 45 54 20  |iles from UUNET |
00000df0  62 79 20 61 6e 6f 6e 79  6d 6f 75 73 20 46 54 50  |by anonymous FTP|
00000e00  2e 20 20 49 66 20 79 6f  75 20 64 6f 6e 27 74 0a  |.  If you don't.|
00000e10  68 61 76 65 20 46 54 50  20 61 63 63 65 73 73 2c  |have FTP access,|
00000e20  20 55 55 4e 45 54 27 73  20 61 72 63 68 69 76 65  | UUNET's archive|
00000e30  73 20 61 72 65 20 61 6c  73 6f 20 61 76 61 69 6c  |s are also avail|
00000e40  61 62 6c 65 20 76 69 61  20 55 55 43 50 3b 20 63  |able via UUCP; c|
00000e50  6f 6e 74 61 63 74 0a 70  6f 73 74 6d 61 73 74 65  |ontact.postmaste|
00000e60  72 40 75 75 6e 65 74 2e  75 75 2e 6e 65 74 20 66  |r@uunet.uu.net f|
00000e70  6f 72 20 69 6e 66 6f 72  6d 61 74 69 6f 6e 20 6f  |or information o|
00000e80  6e 20 72 65 74 72 69 65  76 69 6e 67 20 66 69 6c  |n retrieving fil|
00000e90  65 73 20 74 68 61 74 20  77 61 79 2e 0a 0a 56 61  |es that way...Va|
00000ea0  72 69 6f 75 73 20 6f 74  68 65 72 20 49 6e 74 65  |rious other Inte|
00000eb0  72 6e 65 74 20 73 69 74  65 73 20 6d 61 69 6e 74  |rnet sites maint|
00000ec0  61 69 6e 20 63 6f 70 69  65 73 20 6f 66 20 74 68  |ain copies of th|
00000ed0  65 20 55 55 4e 45 54 20  66 69 6c 65 2c 20 77 68  |e UUNET file, wh|
00000ee0  69 63 68 20 6d 61 79 20  6f 72 0a 6d 61 79 20 6e  |ich may or.may n|
00000ef0  6f 74 20 62 65 20 75 70  2d 74 6f 2d 64 61 74 65  |ot be up-to-date|
00000f00  2e 20 20 49 6e 20 45 75  72 6f 70 65 2c 20 74 72  |.  In Europe, tr|
00000f10  79 20 6e 69 63 2e 66 75  6e 65 74 2e 66 69 20 28  |y nic.funet.fi (|
00000f20  31 32 38 2e 32 31 34 2e  36 2e 31 30 30 3b 20 6c  |128.214.6.100; l|
00000f30  6f 6f 6b 20 69 6e 0a 64  69 72 65 63 74 6f 72 79  |ook in.directory|
00000f40  20 70 75 62 2f 67 72 61  70 68 69 63 73 2f 70 72  | pub/graphics/pr|
00000f50  6f 67 72 61 6d 73 2f 6a  70 65 67 29 2e 0a 0a 59  |ograms/jpeg)...Y|
00000f60  6f 75 20 63 61 6e 20 61  6c 73 6f 20 6f 62 74 61  |ou can also obta|
00000f70  69 6e 20 74 68 69 73 20  73 6f 66 74 77 61 72 65  |in this software|
00000f80  20 66 72 6f 6d 20 43 6f  6d 70 75 53 65 72 76 65  | from CompuServe|
00000f90  2c 20 69 6e 20 74 68 65  20 47 52 41 50 48 53 55  |, in the GRAPHSU|
00000fa0  50 50 4f 52 54 20 66 6f  72 75 6d 0a 28 47 4f 20  |PPORT forum.(GO |
00000fb0  50 49 43 53 29 2c 20 6c  69 62 72 61 72 79 20 31  |PICS), library 1|
00000fc0  30 3b 20 74 68 69 73 20  76 65 72 73 69 6f 6e 20  |0; this version |
00000fd0  77 69 6c 6c 20 62 65 20  66 69 6c 65 20 6a 70 73  |will be file jps|
00000fe0  72 63 33 2e 7a 69 70 2e  0a 0a 0a 53 4f 46 54 57  |rc3.zip....SOFTW|
00000ff0  41 52 45 20 54 48 41 54  27 53 20 4e 4f 20 48 45  |ARE THAT'S NO HE|
00001000  4c 50 20 41 54 20 41 4c  4c 0a 3d 3d 3d 3d 3d 3d  |LP AT ALL.======|
00001010  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00001020  3d 3d 3d 3d 3d 3d 3d 3d  0a 0a 48 61 6e 64 6d 61  |========..Handma|
00001030  64 65 20 53 6f 66 74 77  61 72 65 27 73 20 73 68  |de Software's sh|
00001040  61 72 65 77 61 72 65 20  50 43 20 70 72 6f 67 72  |areware PC progr|
00001050  61 6d 20 47 49 46 32 4a  50 47 20 70 72 6f 64 75  |am GIF2JPG produ|
00001060  63 65 73 20 66 69 6c 65  73 20 74 68 61 74 20 61  |ces files that a|
00001070  72 65 0a 74 6f 74 61 6c  6c 79 20 69 6e 63 6f 6d  |re.totally incom|
00001080  70 61 74 69 62 6c 65 20  77 69 74 68 20 6f 75 72  |patible with our|
00001090  20 70 72 6f 67 72 61 6d  73 2e 20 20 54 68 65 79  | programs.  They|
000010a0  20 75 73 65 20 61 20 70  72 6f 70 72 69 65 74 61  | use a proprieta|
000010b0  72 79 20 66 6f 72 6d 61  74 20 74 68 61 74 20 69  |ry format that i|
000010c0  73 0a 61 6e 20 61 6d 61  6c 67 61 6d 20 6f 66 20  |s.an amalgam of |
000010d0  47 49 46 20 61 6e 64 20  4a 50 45 47 20 72 65 70  |GIF and JPEG rep|
000010e0  72 65 73 65 6e 74 61 74  69 6f 6e 73 2e 20 20 48  |resentations.  H|
000010f0  6f 77 65 76 65 72 2c 20  79 6f 75 20 63 61 6e 20  |owever, you can |
00001100  66 6f 72 63 65 20 47 49  46 32 4a 50 47 0a 74 6f  |force GIF2JPG.to|
00001110  20 70 72 6f 64 75 63 65  20 63 6f 6d 70 61 74 69  | produce compati|
00001120  62 6c 65 20 66 69 6c 65  73 20 77 69 74 68 20 69  |ble files with i|
00001130  74 73 20 2d 6a 20 73 77  69 74 63 68 2c 20 61 6e  |ts -j switch, an|
00001140  64 20 74 68 65 69 72 20  64 65 63 6f 6d 70 72 65  |d their decompre|
00001150  73 73 69 6f 6e 0a 70 72  6f 67 72 61 6d 20 4a 50  |ssion.program JP|
00001160  47 32 47 49 46 20 63 61  6e 20 72 65 61 64 20 6f  |G2GIF can read o|
00001170  75 72 20 66 69 6c 65 73  20 28 61 74 20 6c 65 61  |ur files (at lea|
00001180  73 74 20 6f 6e 65 73 20  70 72 6f 64 75 63 65 64  |st ones produced|
00001190  20 77 69 74 68 20 6f 75  72 20 64 65 66 61 75 6c  | with our defaul|
000011a0  74 0a 6f 70 74 69 6f 6e  20 73 65 74 74 69 6e 67  |t.option setting|
000011b0  73 29 2e 0a 0a 55 6e 66  6f 72 74 75 6e 61 74 65  |s)...Unfortunate|
000011c0  6c 79 2c 20 6d 61 6e 79  20 63 6f 6d 6d 65 72 63  |ly, many commerc|
000011d0  69 61 6c 20 4a 50 45 47  20 69 6d 70 6c 65 6d 65  |ial JPEG impleme|
000011e0  6e 74 61 74 69 6f 6e 73  20 61 72 65 20 61 6c 73  |ntations are als|
000011f0  6f 20 69 6e 63 6f 6d 70  61 74 69 62 6c 65 20 61  |o incompatible a|
00001200  73 0a 6f 66 20 74 68 69  73 20 77 72 69 74 69 6e  |s.of this writin|
00001210  67 2c 20 65 73 70 65 63  69 61 6c 6c 79 20 70 72  |g, especially pr|
00001220  6f 67 72 61 6d 73 20 72  65 6c 65 61 73 65 64 20  |ograms released |
00001230  62 65 66 6f 72 65 20 73  75 6d 6d 65 72 20 31 39  |before summer 19|
00001240  39 31 2e 20 20 54 68 65  20 72 6f 6f 74 20 6f 66  |91.  The root of|
00001250  0a 74 68 65 20 70 72 6f  62 6c 65 6d 20 69 73 20  |.the problem is |
00001260  74 68 61 74 20 74 68 65  20 49 53 4f 20 4a 50 45  |that the ISO JPE|
00001270  47 20 63 6f 6d 6d 69 74  74 65 65 20 66 61 69 6c  |G committee fail|
00001280  65 64 20 74 6f 20 73 70  65 63 69 66 79 20 61 20  |ed to specify a |
00001290  63 6f 6e 63 72 65 74 65  20 66 69 6c 65 0a 66 6f  |concrete file.fo|
000012a0  72 6d 61 74 2e 20 20 53  6f 6d 65 20 76 65 6e 64  |rmat.  Some vend|
000012b0  6f 72 73 20 22 66 69 6c  6c 65 64 20 69 6e 20 74  |ors "filled in t|
000012c0  68 65 20 62 6c 61 6e 6b  73 22 20 6f 6e 20 74 68  |he blanks" on th|
000012d0  65 69 72 20 6f 77 6e 2c  20 63 72 65 61 74 69 6e  |eir own, creatin|
000012e0  67 0a 70 72 6f 70 72 69  65 74 61 72 79 20 66 6f  |g.proprietary fo|
000012f0  72 6d 61 74 73 20 74 68  61 74 20 6e 6f 20 6f 6e  |rmats that no on|
00001300  65 20 65 6c 73 65 20 63  6f 75 6c 64 20 72 65 61  |e else could rea|
00001310  64 2e 20 20 28 46 6f 72  20 65 78 61 6d 70 6c 65  |d.  (For example|
00001320  2c 20 6e 6f 6e 65 20 6f  66 20 74 68 65 0a 65 61  |, none of the.ea|
00001330  72 6c 79 20 63 6f 6d 6d  65 72 63 69 61 6c 20 4a  |rly commercial J|
00001340  50 45 47 20 69 6d 70 6c  65 6d 65 6e 74 61 74 69  |PEG implementati|
00001350  6f 6e 73 20 66 6f 72 20  74 68 65 20 4d 61 63 69  |ons for the Maci|
00001360  6e 74 6f 73 68 20 77 65  72 65 20 61 62 6c 65 20  |ntosh were able |
00001370  74 6f 20 65 78 63 68 61  6e 67 65 0a 63 6f 6d 70  |to exchange.comp|
00001380  72 65 73 73 65 64 20 66  69 6c 65 73 2e 29 0a 0a  |ressed files.)..|
00001390  54 68 65 20 66 69 6c 65  20 66 6f 72 6d 61 74 20  |The file format |
000013a0  77 65 20 68 61 76 65 20  61 64 6f 70 74 65 64 20  |we have adopted |
000013b0  69 73 20 63 61 6c 6c 65  64 20 4a 46 49 46 20 28  |is called JFIF (|
000013c0  73 65 65 20 52 45 46 45  52 45 4e 43 45 53 29 2e  |see REFERENCES).|
000013d0  20 20 54 68 69 73 20 66  6f 72 6d 61 74 0a 68 61  |  This format.ha|
000013e0  73 20 62 65 65 6e 20 61  67 72 65 65 64 20 74 6f  |s been agreed to|
000013f0  20 62 79 20 61 20 6e 75  6d 62 65 72 20 6f 66 20  | by a number of |
00001400  6d 61 6a 6f 72 20 63 6f  6d 6d 65 72 63 69 61 6c  |major commercial|
00001410  20 4a 50 45 47 20 76 65  6e 64 6f 72 73 2c 20 61  | JPEG vendors, a|
00001420  6e 64 20 77 65 20 65 78  70 65 63 74 0a 74 68 61  |nd we expect.tha|
00001430  74 20 69 74 20 77 69 6c  6c 20 62 65 63 6f 6d 65  |t it will become|
00001440  20 74 68 65 20 64 65 20  66 61 63 74 6f 20 73 74  | the de facto st|
00001450  61 6e 64 61 72 64 2e 20  20 4a 46 49 46 20 69 73  |andard.  JFIF is|
00001460  20 61 20 6d 69 6e 69 6d  61 6c 20 72 65 70 72 65  | a minimal repre|
00001470  73 65 6e 74 61 74 69 6f  6e 3b 0a 77 6f 72 6b 20  |sentation;.work |
00001480  69 73 20 61 6c 73 6f 20  67 6f 69 6e 67 20 66 6f  |is also going fo|
00001490  72 77 61 72 64 20 74 6f  20 69 6e 63 6f 72 70 6f  |rward to incorpo|
000014a0  72 61 74 65 20 4a 50 45  47 20 63 6f 6d 70 72 65  |rate JPEG compre|
000014b0  73 73 69 6f 6e 20 69 6e  74 6f 20 74 68 65 20 54  |ssion into the T|
000014c0  49 46 46 0a 73 74 61 6e  64 61 72 64 2c 20 66 6f  |IFF.standard, fo|
000014d0  72 20 75 73 65 20 69 6e  20 22 68 69 67 68 20 65  |r use in "high e|
000014e0  6e 64 22 20 61 70 70 6c  69 63 61 74 69 6f 6e 73  |nd" applications|
000014f0  20 74 68 61 74 20 6e 65  65 64 20 74 6f 20 72 65  | that need to re|
00001500  63 6f 72 64 20 61 20 6c  6f 74 20 6f 66 0a 61 64  |cord a lot of.ad|
00001510  64 69 74 69 6f 6e 61 6c  20 64 61 74 61 20 61 62  |ditional data ab|
00001520  6f 75 74 20 61 6e 20 69  6d 61 67 65 2e 20 20 57  |out an image.  W|
00001530  65 20 69 6e 74 65 6e 64  20 74 6f 20 73 75 70 70  |e intend to supp|
00001540  6f 72 74 20 4a 50 45 47  2d 69 6e 2d 54 49 46 46  |ort JPEG-in-TIFF|
00001550  20 69 6e 20 74 68 65 0a  66 75 74 75 72 65 2e 20  | in the.future. |
00001560  20 57 65 20 68 6f 70 65  20 74 68 61 74 20 74 68  | We hope that th|
00001570  65 73 65 20 74 77 6f 20  66 6f 72 6d 61 74 73 20  |ese two formats |
00001580  77 69 6c 6c 20 62 65 20  73 75 66 66 69 63 69 65  |will be sufficie|
00001590  6e 74 20 61 6e 64 20 74  68 61 74 20 6f 74 68 65  |nt and that othe|
000015a0  72 2c 0a 69 6e 63 6f 6d  70 61 74 69 62 6c 65 20  |r,.incompatible |
000015b0  4a 50 45 47 20 66 69 6c  65 20 66 6f 72 6d 61 74  |JPEG file format|
000015c0  73 20 77 69 6c 6c 20 6e  6f 74 20 70 72 6f 6c 69  |s will not proli|
000015d0  66 65 72 61 74 65 2e 0a  0a 49 6e 64 65 65 64 2c  |ferate...Indeed,|
000015e0  20 70 61 72 74 20 6f 66  20 74 68 65 20 72 65 61  | part of the rea|
000015f0  73 6f 6e 20 66 6f 72 20  64 65 76 65 6c 6f 70 69  |son for developi|
00001600  6e 67 20 61 6e 64 20 72  65 6c 65 61 73 69 6e 67  |ng and releasing|
00001610  20 74 68 69 73 20 66 72  65 65 20 73 6f 66 74 77  | this free softw|
00001620  61 72 65 20 69 73 0a 74  6f 20 68 65 6c 70 20 66  |are is.to help f|
00001630  6f 72 63 65 20 72 61 70  69 64 20 63 6f 6e 76 65  |orce rapid conve|
00001640  72 67 65 6e 63 65 20 74  6f 20 64 65 20 66 61 63  |rgence to de fac|
00001650  74 6f 20 73 74 61 6e 64  61 72 64 73 20 66 6f 72  |to standards for|
00001660  20 4a 50 45 47 20 66 69  6c 65 20 66 6f 72 6d 61  | JPEG file forma|
00001670  74 73 2e 0a 53 55 50 50  4f 52 54 20 53 54 41 4e  |ts..SUPPORT STAN|
00001680  44 41 52 44 2c 20 4e 4f  4e 2d 50 52 4f 50 52 49  |DARD, NON-PROPRI|
00001690  45 54 41 52 59 20 46 4f  52 4d 41 54 53 3a 20 64  |ETARY FORMATS: d|
000016a0  65 6d 61 6e 64 20 4a 46  49 46 20 6f 72 20 4a 50  |emand JFIF or JP|
000016b0  45 47 2d 69 6e 2d 54 49  46 46 21 0a 0a 0a 52 45  |EG-in-TIFF!...RE|
000016c0  46 45 52 45 4e 43 45 53  0a 3d 3d 3d 3d 3d 3d 3d  |FERENCES.=======|
000016d0  3d 3d 3d 0a 0a 54 68 65  20 62 65 73 74 20 61 6e  |===..The best an|
000016e0  64 20 6d 6f 73 74 20 72  65 61 64 69 6c 79 20 61  |d most readily a|
000016f0  76 61 69 6c 61 62 6c 65  20 69 6e 74 72 6f 64 75  |vailable introdu|
00001700  63 74 69 6f 6e 20 74 6f  20 74 68 65 20 4a 50 45  |ction to the JPE|
00001710  47 20 63 6f 6d 70 72 65  73 73 69 6f 6e 0a 61 6c  |G compression.al|
00001720  67 6f 72 69 74 68 6d 20  69 73 20 57 61 6c 6c 61  |gorithm is Walla|
00001730  63 65 27 73 20 61 72 74  69 63 6c 65 20 69 6e 20  |ce's article in |
00001740  74 68 65 20 41 70 72 69  6c 20 27 39 31 20 43 41  |the April '91 CA|
00001750  43 4d 3a 0a 20 20 20 20  20 20 20 20 57 61 6c 6c  |CM:.        Wall|
00001760  61 63 65 2c 20 47 72 65  67 6f 72 79 20 4b 2e 20  |ace, Gregory K. |
00001770  20 22 54 68 65 20 4a 50  45 47 20 53 74 69 6c 6c  | "The JPEG Still|
00001780  20 50 69 63 74 75 72 65  20 43 6f 6d 70 72 65 73  | Picture Compres|
00001790  73 69 6f 6e 20 53 74 61  6e 64 61 72 64 22 2c 0a  |sion Standard",.|
000017a0  20 20 20 20 20 20 20 20  43 6f 6d 6d 75 6e 69 63  |        Communic|
000017b0  61 74 69 6f 6e 73 20 6f  66 20 74 68 65 20 41 43  |ations of the AC|
000017c0  4d 2c 20 41 70 72 69 6c  20 31 39 39 31 20 28 76  |M, April 1991 (v|
000017d0  6f 6c 2e 20 33 34 20 6e  6f 2e 20 34 29 2c 20 70  |ol. 34 no. 4), p|
000017e0  70 2e 20 33 30 2d 34 34  2e 0a 28 41 64 6a 61 63  |p. 30-44..(Adjac|
000017f0  65 6e 74 20 61 72 74 69  63 6c 65 73 20 69 6e 20  |ent articles in |
00001800  74 68 61 74 20 69 73 73  75 65 20 64 69 73 63 75  |that issue discu|
00001810  73 73 20 4d 50 45 47 20  6d 6f 74 69 6f 6e 20 70  |ss MPEG motion p|
00001820  69 63 74 75 72 65 20 63  6f 6d 70 72 65 73 73 69  |icture compressi|
00001830  6f 6e 2c 0a 61 70 70 6c  69 63 61 74 69 6f 6e 73  |on,.applications|
00001840  20 6f 66 20 4a 50 45 47  2c 20 61 6e 64 20 72 65  | of JPEG, and re|
00001850  6c 61 74 65 64 20 74 6f  70 69 63 73 2e 29 20 20  |lated topics.)  |
00001860  57 65 20 68 69 67 68 6c  79 20 72 65 63 6f 6d 6d  |We highly recomm|
00001870  65 6e 64 20 72 65 61 64  69 6e 67 20 74 68 61 74  |end reading that|
00001880  0a 61 72 74 69 63 6c 65  20 62 65 66 6f 72 65 20  |.article before |
00001890  74 72 79 69 6e 67 20 74  6f 20 75 6e 64 65 72 73  |trying to unders|
000018a0  74 61 6e 64 20 74 68 65  20 69 6e 6e 61 72 64 73  |tand the innards|
000018b0  20 6f 66 20 61 6e 79 20  4a 50 45 47 20 73 6f 66  | of any JPEG sof|
000018c0  74 77 61 72 65 2e 0a 49  66 20 79 6f 75 20 64 6f  |tware..If you do|
000018d0  6e 27 74 20 68 61 76 65  20 74 68 65 20 43 41 43  |n't have the CAC|
000018e0  4d 20 69 73 73 75 65 20  68 61 6e 64 79 2c 20 61  |M issue handy, a|
000018f0  20 50 6f 73 74 53 63 72  69 70 74 20 66 69 6c 65  | PostScript file|
00001900  20 63 6f 6e 74 61 69 6e  69 6e 67 20 61 20 72 65  | containing a re|
00001910  76 69 73 65 64 0a 76 65  72 73 69 6f 6e 20 6f 66  |vised.version of|
00001920  20 74 68 65 20 61 72 74  69 63 6c 65 20 69 73 20  | the article is |
00001930  61 76 61 69 6c 61 62 6c  65 20 61 74 20 66 74 70  |available at ftp|
00001940  2e 75 75 2e 6e 65 74 2c  20 67 72 61 70 68 69 63  |.uu.net, graphic|
00001950  73 2f 6a 70 65 67 2f 77  61 6c 6c 61 63 65 2e 70  |s/jpeg/wallace.p|
00001960  73 2e 5a 2e 0a 54 68 65  20 66 69 6c 65 20 28 61  |s.Z..The file (a|
00001970  63 74 75 61 6c 6c 79 20  61 20 70 72 65 70 72 69  |ctually a prepri|
00001980  6e 74 20 66 6f 72 20 61  6e 20 61 72 74 69 63 6c  |nt for an articl|
00001990  65 20 74 6f 20 61 70 70  65 61 72 20 69 6e 20 49  |e to appear in I|
000019a0  45 45 45 20 54 72 61 6e  73 2e 20 43 6f 6e 73 75  |EEE Trans. Consu|
000019b0  6d 65 72 0a 45 6c 65 63  74 72 6f 6e 69 63 73 29  |mer.Electronics)|
000019c0  20 6f 6d 69 74 73 20 74  68 65 20 73 61 6d 70 6c  | omits the sampl|
000019d0  65 20 69 6d 61 67 65 73  20 74 68 61 74 20 61 70  |e images that ap|
000019e0  70 65 61 72 65 64 20 69  6e 20 43 41 43 4d 2c 20  |peared in CACM, |
000019f0  62 75 74 20 69 74 20 69  6e 63 6c 75 64 65 73 0a  |but it includes.|
00001a00  63 6f 72 72 65 63 74 69  6f 6e 73 20 61 6e 64 20  |corrections and |
00001a10  73 6f 6d 65 20 61 64 64  65 64 20 6d 61 74 65 72  |some added mater|
00001a20  69 61 6c 2e 20 20 4e 6f  74 65 3a 20 74 68 65 20  |ial.  Note: the |
00001a30  57 61 6c 6c 61 63 65 20  61 72 74 69 63 6c 65 20  |Wallace article |
00001a40  69 73 20 63 6f 70 79 72  69 67 68 74 0a 41 43 4d  |is copyright.ACM|
00001a50  20 61 6e 64 20 49 45 45  45 2c 20 61 6e 64 20 69  | and IEEE, and i|
00001a60  74 20 6d 61 79 20 6e 6f  74 20 62 65 20 75 73 65  |t may not be use|
00001a70  64 20 66 6f 72 20 63 6f  6d 6d 65 72 63 69 61 6c  |d for commercial|
00001a80  20 70 75 72 70 6f 73 65  73 2e 0a 0a 46 6f 72 20  | purposes...For |
00001a90  6d 6f 72 65 20 64 65 74  61 69 6c 20 61 62 6f 75  |more detail abou|
00001aa0  74 20 74 68 65 20 4a 50  45 47 20 73 74 61 6e 64  |t the JPEG stand|
00001ab0  61 72 64 20 79 6f 75 20  70 72 65 74 74 79 20 6d  |ard you pretty m|
00001ac0  75 63 68 20 68 61 76 65  20 74 6f 20 67 6f 20 74  |uch have to go t|
00001ad0  6f 20 74 68 65 0a 64 72  61 66 74 20 73 74 61 6e  |o the.draft stan|
00001ae0  64 61 72 64 20 28 77 68  69 63 68 20 69 73 20 6e  |dard (which is n|
00001af0  6f 74 20 6e 65 61 72 6c  79 20 61 73 20 69 6e 74  |ot nearly as int|
00001b00  65 6c 6c 69 67 69 62 6c  65 20 61 73 20 57 61 6c  |elligible as Wal|
00001b10  6c 61 63 65 27 73 20 61  72 74 69 63 6c 65 29 2e  |lace's article).|
00001b20  0a 54 68 65 20 73 74 61  6e 64 61 72 64 20 69 73  |.The standard is|
00001b30  20 6e 6f 74 20 6e 6f 77  20 61 76 61 69 6c 61 62  | not now availab|
00001b40  6c 65 20 65 6c 65 63 74  72 6f 6e 69 63 61 6c 6c  |le electronicall|
00001b50  79 3b 20 79 6f 75 20 6d  75 73 74 20 6f 72 64 65  |y; you must orde|
00001b60  72 20 61 20 70 61 70 65  72 20 63 6f 70 79 0a 74  |r a paper copy.t|
00001b70  68 72 6f 75 67 68 20 49  53 4f 2e 20 20 49 6e 20  |hrough ISO.  In |
00001b80  74 68 65 20 55 53 2c 20  63 6f 70 69 65 73 20 6d  |the US, copies m|
00001b90  61 79 20 62 65 20 6f 72  64 65 72 65 64 20 66 72  |ay be ordered fr|
00001ba0  6f 6d 20 41 4e 53 49 20  53 61 6c 65 73 20 61 74  |om ANSI Sales at|
00001bb0  20 28 32 31 32 29 0a 36  34 32 2d 34 39 30 30 2e  | (212).642-4900.|
00001bc0  20 20 54 68 65 20 73 74  61 6e 64 61 72 64 20 69  |  The standard i|
00001bd0  73 20 64 69 76 69 64 65  64 20 69 6e 74 6f 20 74  |s divided into t|
00001be0  77 6f 20 70 61 72 74 73  3a 20 50 61 72 74 20 31  |wo parts: Part 1|
00001bf0  20 69 73 20 74 68 65 20  61 63 74 75 61 6c 0a 73  | is the actual.s|
00001c00  70 65 63 69 66 69 63 61  74 69 6f 6e 2c 20 61 6e  |pecification, an|
00001c10  64 20 50 61 72 74 20 32  20 63 6f 76 65 72 73 20  |d Part 2 covers |
00001c20  63 6f 6d 70 6c 69 61 6e  63 65 20 74 65 73 74 69  |compliance testi|
00001c30  6e 67 20 6d 65 74 68 6f  64 73 2e 20 20 54 68 65  |ng methods.  The|
00001c40  20 63 75 72 72 65 6e 74  0a 22 63 6f 6d 6d 69 74  | current."commit|
00001c50  74 65 65 20 64 72 61 66  74 22 20 76 65 72 73 69  |tee draft" versi|
00001c60  6f 6e 20 6f 66 20 50 61  72 74 20 31 20 69 73 20  |on of Part 1 is |
00001c70  74 69 74 6c 65 64 20 22  44 69 67 69 74 61 6c 20  |titled "Digital |
00001c80  43 6f 6d 70 72 65 73 73  69 6f 6e 20 61 6e 64 20  |Compression and |
00001c90  43 6f 64 69 6e 67 0a 6f  66 20 43 6f 6e 74 69 6e  |Coding.of Contin|
00001ca0  75 6f 75 73 2d 74 6f 6e  65 20 53 74 69 6c 6c 20  |uous-tone Still |
00001cb0  49 6d 61 67 65 73 2c 20  50 61 72 74 20 31 3a 20  |Images, Part 1: |
00001cc0  52 65 71 75 69 72 65 6d  65 6e 74 73 20 61 6e 64  |Requirements and|
00001cd0  20 67 75 69 64 65 6c 69  6e 65 73 22 20 61 6e 64  | guidelines" and|
00001ce0  20 68 61 73 0a 64 6f 63  75 6d 65 6e 74 20 6e 75  | has.document nu|
00001cf0  6d 62 65 72 20 49 53 4f  2f 49 45 43 20 43 44 20  |mber ISO/IEC CD |
00001d00  31 30 39 31 38 2d 31 2e  20 20 28 54 68 65 20 61  |10918-1.  (The a|
00001d10  6c 74 65 72 6e 61 74 65  20 6e 75 6d 62 65 72 20  |lternate number |
00001d20  53 43 32 20 4e 32 32 31  35 20 73 68 6f 75 6c 64  |SC2 N2215 should|
00001d30  0a 61 6c 73 6f 20 62 65  20 6d 65 6e 74 69 6f 6e  |.also be mention|
00001d40  65 64 20 77 68 65 6e 20  6f 72 64 65 72 69 6e 67  |ed when ordering|
00001d50  2e 29 20 20 54 68 69 73  20 64 72 61 66 74 20 69  |.)  This draft i|
00001d60  73 20 65 78 70 65 63 74  65 64 20 74 6f 20 62 65  |s expected to be|
00001d70  20 73 75 70 65 72 73 65  64 65 64 20 62 79 0a 74  | superseded by.t|
00001d80  68 65 20 44 72 61 66 74  20 49 6e 74 65 72 6e 61  |he Draft Interna|
00001d90  74 69 6f 6e 61 6c 20 53  74 61 6e 64 61 72 64 20  |tional Standard |
00001da0  76 65 72 73 69 6f 6e 20  61 72 6f 75 6e 64 20 74  |version around t|
00001db0  68 65 20 65 6e 64 20 6f  66 20 4e 6f 76 65 6d 62  |he end of Novemb|
00001dc0  65 72 20 31 39 39 31 2e  0a 4f 72 64 65 72 69 6e  |er 1991..Orderin|
00001dd0  67 20 69 6e 66 6f 20 77  69 6c 6c 20 62 65 20 74  |g info will be t|
00001de0  68 65 20 73 61 6d 65 20  61 73 20 61 62 6f 76 65  |he same as above|
00001df0  2c 20 62 75 74 20 72 65  70 6c 61 63 65 20 22 43  |, but replace "C|
00001e00  44 22 20 77 69 74 68 20  22 44 49 53 22 20 69 6e  |D" with "DIS" in|
00001e10  20 74 68 65 0a 64 6f 63  75 6d 65 6e 74 20 6e 75  | the.document nu|
00001e20  6d 62 65 72 20 28 61 6c  74 65 72 6e 61 74 65 20  |mber (alternate |
00001e30  6e 75 6d 62 65 72 20 6e  6f 74 20 79 65 74 20 6b  |number not yet k|
00001e40  6e 6f 77 6e 29 2e 20 20  54 68 65 20 63 6f 6d 6d  |nown).  The comm|
00001e50  69 74 74 65 65 20 64 72  61 66 74 20 6f 66 0a 50  |ittee draft of.P|
00001e60  61 72 74 20 32 20 69 73  20 65 78 70 65 63 74 65  |art 2 is expecte|
00001e70  64 20 74 6f 20 62 65 20  61 76 61 69 6c 61 62 6c  |d to be availabl|
00001e80  65 20 61 72 6f 75 6e 64  20 74 68 65 20 65 6e 64  |e around the end|
00001e90  20 6f 66 20 44 65 63 65  6d 62 65 72 20 31 39 39  | of December 199|
00001ea0  31 2e 20 20 49 74 20 77  69 6c 6c 0a 62 65 20 74  |1.  It will.be t|
00001eb0  69 74 6c 65 64 20 22 44  69 67 69 74 61 6c 20 43  |itled "Digital C|
00001ec0  6f 6d 70 72 65 73 73 69  6f 6e 20 61 6e 64 20 43  |ompression and C|
00001ed0  6f 64 69 6e 67 20 6f 66  20 43 6f 6e 74 69 6e 75  |oding of Continu|
00001ee0  6f 75 73 2d 74 6f 6e 65  20 53 74 69 6c 6c 20 49  |ous-tone Still I|
00001ef0  6d 61 67 65 73 2c 0a 50  61 72 74 20 32 3a 20 43  |mages,.Part 2: C|
00001f00  6f 6d 70 6c 69 61 6e 63  65 20 74 65 73 74 69 6e  |ompliance testin|
00001f10  67 22 20 61 6e 64 20 77  69 6c 6c 20 68 61 76 65  |g" and will have|
00001f20  20 64 6f 63 75 6d 65 6e  74 20 6e 75 6d 62 65 72  | document number|
00001f30  20 49 53 4f 2f 49 45 43  20 43 44 20 31 30 39 31  | ISO/IEC CD 1091|
00001f40  38 2d 32 0a 28 61 6c 74  65 72 6e 61 74 65 20 6e  |8-2.(alternate n|
00001f50  75 6d 62 65 72 20 6e 6f  74 20 79 65 74 20 6b 6e  |umber not yet kn|
00001f60  6f 77 6e 29 2e 0a 0a 54  68 65 20 4a 50 45 47 20  |own)...The JPEG |
00001f70  73 74 61 6e 64 61 72 64  20 64 6f 65 73 20 6e 6f  |standard does no|
00001f80  74 20 73 70 65 63 69 66  79 20 61 6c 6c 20 64 65  |t specify all de|
00001f90  74 61 69 6c 73 20 6f 66  20 61 6e 20 69 6e 74 65  |tails of an inte|
00001fa0  72 63 68 61 6e 67 65 61  62 6c 65 20 66 69 6c 65  |rchangeable file|
00001fb0  0a 66 6f 72 6d 61 74 2e  20 20 46 6f 72 20 74 68  |.format.  For th|
00001fc0  65 20 6f 6d 69 74 74 65  64 20 64 65 74 61 69 6c  |e omitted detail|
00001fd0  73 20 77 65 20 66 6f 6c  6c 6f 77 20 74 68 65 20  |s we follow the |
00001fe0  22 4a 46 49 46 22 20 63  6f 6e 76 65 6e 74 69 6f  |"JFIF" conventio|
00001ff0  6e 73 2c 20 72 65 76 69  73 69 6f 6e 0a 31 2e 30  |ns, revision.1.0|
00002000  31 2e 20 20 41 20 63 6f  70 79 20 6f 66 20 74 68  |1.  A copy of th|
00002010  65 20 4a 46 49 46 20 73  70 65 63 20 69 73 20 61  |e JFIF spec is a|
00002020  76 61 69 6c 61 62 6c 65  20 66 72 6f 6d 3a 0a 20  |vailable from:. |
00002030  20 20 20 20 20 20 20 4c  69 74 65 72 61 74 75 72  |       Literatur|
00002040  65 20 44 65 70 61 72 74  6d 65 6e 74 0a 20 20 20  |e Department.   |
00002050  20 20 20 20 20 43 2d 43  75 62 65 20 4d 69 63 72  |     C-Cube Micr|
00002060  6f 73 79 73 74 65 6d 73  2c 20 49 6e 63 2e 0a 20  |osystems, Inc.. |
00002070  20 20 20 20 20 20 20 33  39 39 41 20 57 65 73 74  |       399A West|
00002080  20 54 72 69 6d 62 6c 65  20 52 6f 61 64 0a 20 20  | Trimble Road.  |
00002090  20 20 20 20 20 20 53 61  6e 20 4a 6f 73 65 2c 20  |      San Jose, |
000020a0  43 41 20 20 39 35 31 33  31 0a 20 20 20 20 20 20  |CA  95131.      |
000020b0  20 20 28 34 30 38 29 20  39 34 34 2d 36 33 30 30  |  (408) 944-6300|
000020c0  0a 54 68 65 20 73 61 6d  65 20 73 6f 75 72 63 65  |.The same source|
000020d0  20 63 61 6e 20 73 75 70  70 6c 79 20 63 6f 70 69  | can supply copi|
000020e0  65 73 20 6f 66 20 74 68  65 20 64 72 61 66 74 20  |es of the draft |
000020f0  4a 50 45 47 2d 69 6e 2d  54 49 46 46 20 64 6f 63  |JPEG-in-TIFF doc|
00002100  75 6d 65 6e 74 73 0a 28  41 70 70 65 6e 64 69 78  |uments.(Appendix|
00002110  65 73 20 4f 20 61 6e 64  20 50 20 74 6f 20 74 68  |es O and P to th|
00002120  65 20 54 49 46 46 20 73  70 65 63 29 2e 20 20 50  |e TIFF spec).  P|
00002130  6f 73 74 53 63 72 69 70  74 20 76 65 72 73 69 6f  |ostScript versio|
00002140  6e 73 20 6f 66 20 74 68  65 73 65 0a 64 6f 63 75  |ns of these.docu|
00002150  6d 65 6e 74 73 20 63 61  6e 20 61 6c 73 6f 20 62  |ments can also b|
00002160  65 20 6f 62 74 61 69 6e  65 64 20 62 79 20 65 2d  |e obtained by e-|
00002170  6d 61 69 6c 20 66 72 6f  6d 20 74 68 65 20 43 2d  |mail from the C-|
00002180  43 75 62 65 20 6d 61 69  6c 20 73 65 72 76 65 72  |Cube mail server|
00002190  2c 0a 6e 65 74 6c 69 62  40 63 33 2e 70 6c 61 2e  |,.netlib@c3.pla.|
000021a0  63 61 2e 75 73 2e 20 20  53 65 6e 64 20 74 68 65  |ca.us.  Send the|
000021b0  20 6d 65 73 73 61 67 65  20 22 73 65 6e 64 20 6a  | message "send j|
000021c0  66 69 66 5f 70 73 20 66  72 6f 6d 20 6a 70 65 67  |fif_ps from jpeg|
000021d0  22 20 74 6f 20 6f 62 74  61 69 6e 20 74 68 65 0a  |" to obtain the.|
000021e0  4a 46 49 46 20 64 6f 63  75 6d 65 6e 74 3b 20 22  |JFIF document; "|
000021f0  73 65 6e 64 20 61 70 70  5f 6f 5f 70 73 20 66 72  |send app_o_ps fr|
00002200  6f 6d 20 6a 70 65 67 22  20 61 6e 64 20 22 73 65  |om jpeg" and "se|
00002210  6e 64 20 61 70 70 5f 70  5f 70 73 20 66 72 6f 6d  |nd app_p_ps from|
00002220  20 6a 70 65 67 22 20 77  69 6c 6c 0a 70 72 6f 64  | jpeg" will.prod|
00002230  75 63 65 20 74 68 65 20  54 49 46 46 20 64 6f 63  |uce the TIFF doc|
00002240  75 6d 65 6e 74 73 2e 20  20 53 65 6e 64 20 74 68  |uments.  Send th|
00002250  65 20 6d 65 73 73 61 67  65 20 22 68 65 6c 70 22  |e message "help"|
00002260  20 69 66 20 79 6f 75 20  68 61 76 65 20 74 72 6f  | if you have tro|
00002270  75 62 6c 65 2e 0a 0a 0a  4c 45 47 41 4c 20 49 53  |uble....LEGAL IS|
00002280  53 55 45 53 0a 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |SUES.===========|
00002290  3d 0a 0a 54 68 65 20 61  75 74 68 6f 72 73 20 6d  |=..The authors m|
000022a0  61 6b 65 20 4e 4f 20 57  41 52 52 41 4e 54 59 20  |ake NO WARRANTY |
000022b0  6f 72 20 72 65 70 72 65  73 65 6e 74 61 74 69 6f  |or representatio|
000022c0  6e 2c 20 65 69 74 68 65  72 20 65 78 70 72 65 73  |n, either expres|
000022d0  73 20 6f 72 20 69 6d 70  6c 69 65 64 2c 0a 77 69  |s or implied,.wi|
000022e0  74 68 20 72 65 73 70 65  63 74 20 74 6f 20 74 68  |th respect to th|
000022f0  69 73 20 73 6f 66 74 77  61 72 65 2c 20 69 74 73  |is software, its|
00002300  20 71 75 61 6c 69 74 79  2c 20 61 63 63 75 72 61  | quality, accura|
00002310  63 79 2c 20 6d 65 72 63  68 61 6e 74 61 62 69 6c  |cy, merchantabil|
00002320  69 74 79 2c 20 6f 72 0a  66 69 74 6e 65 73 73 20  |ity, or.fitness |
00002330  66 6f 72 20 61 20 70 61  72 74 69 63 75 6c 61 72  |for a particular|
00002340  20 70 75 72 70 6f 73 65  2e 20 20 54 68 69 73 20  | purpose.  This |
00002350  73 6f 66 74 77 61 72 65  20 69 73 20 70 72 6f 76  |software is prov|
00002360  69 64 65 64 20 22 41 53  20 49 53 22 2c 20 61 6e  |ided "AS IS", an|
00002370  64 20 79 6f 75 2c 0a 69  74 73 20 75 73 65 72 2c  |d you,.its user,|
00002380  20 61 73 73 75 6d 65 20  74 68 65 20 65 6e 74 69  | assume the enti|
00002390  72 65 20 72 69 73 6b 20  61 73 20 74 6f 20 69 74  |re risk as to it|
000023a0  73 20 71 75 61 6c 69 74  79 20 61 6e 64 20 61 63  |s quality and ac|
000023b0  63 75 72 61 63 79 2e 0a  0a 54 68 69 73 20 73 6f  |curacy...This so|
000023c0  66 74 77 61 72 65 20 69  73 20 63 6f 70 79 72 69  |ftware is copyri|
000023d0  67 68 74 20 28 43 29 20  31 39 39 31 2c 20 31 39  |ght (C) 1991, 19|
000023e0  39 32 2c 20 54 68 6f 6d  61 73 20 47 2e 20 4c 61  |92, Thomas G. La|
000023f0  6e 65 2e 0a 41 6c 6c 20  52 69 67 68 74 73 20 52  |ne..All Rights R|
00002400  65 73 65 72 76 65 64 20  65 78 63 65 70 74 20 61  |eserved except a|
00002410  73 20 73 70 65 63 69 66  69 65 64 20 62 65 6c 6f  |s specified belo|
00002420  77 2e 0a 0a 50 65 72 6d  69 73 73 69 6f 6e 20 69  |w...Permission i|
00002430  73 20 68 65 72 65 62 79  20 67 72 61 6e 74 65 64  |s hereby granted|
00002440  20 74 6f 20 75 73 65 2c  20 63 6f 70 79 2c 20 6d  | to use, copy, m|
00002450  6f 64 69 66 79 2c 20 61  6e 64 20 64 69 73 74 72  |odify, and distr|
00002460  69 62 75 74 65 20 74 68  69 73 0a 73 6f 66 74 77  |ibute this.softw|
00002470  61 72 65 20 28 6f 72 20  70 6f 72 74 69 6f 6e 73  |are (or portions|
00002480  20 74 68 65 72 65 6f 66  29 20 66 6f 72 20 61 6e  | thereof) for an|
00002490  79 20 70 75 72 70 6f 73  65 2c 20 77 69 74 68 6f  |y purpose, witho|
000024a0  75 74 20 66 65 65 2c 20  73 75 62 6a 65 63 74 20  |ut fee, subject |
000024b0  74 6f 20 74 68 65 73 65  0a 63 6f 6e 64 69 74 69  |to these.conditi|
000024c0  6f 6e 73 3a 0a 28 31 29  20 49 66 20 61 6e 79 20  |ons:.(1) If any |
000024d0  70 61 72 74 20 6f 66 20  74 68 65 20 73 6f 75 72  |part of the sour|
000024e0  63 65 20 63 6f 64 65 20  66 6f 72 20 74 68 69 73  |ce code for this|
000024f0  20 73 6f 66 74 77 61 72  65 20 69 73 20 64 69 73  | software is dis|
00002500  74 72 69 62 75 74 65 64  2c 20 74 68 65 6e 20 74  |tributed, then t|
00002510  68 69 73 0a 52 45 41 44  4d 45 20 66 69 6c 65 20  |his.README file |
00002520  6d 75 73 74 20 62 65 20  69 6e 63 6c 75 64 65 64  |must be included|
00002530  2c 20 77 69 74 68 20 74  68 69 73 20 63 6f 70 79  |, with this copy|
00002540  72 69 67 68 74 20 61 6e  64 20 6e 6f 2d 77 61 72  |right and no-war|
00002550  72 61 6e 74 79 20 6e 6f  74 69 63 65 0a 75 6e 61  |ranty notice.una|
00002560  6c 74 65 72 65 64 3b 20  61 6e 64 20 61 6e 79 20  |ltered; and any |
00002570  61 64 64 69 74 69 6f 6e  73 2c 20 64 65 6c 65 74  |additions, delet|
00002580  69 6f 6e 73 2c 20 6f 72  20 63 68 61 6e 67 65 73  |ions, or changes|
00002590  20 74 6f 20 74 68 65 20  6f 72 69 67 69 6e 61 6c  | to the original|
000025a0  20 66 69 6c 65 73 0a 6d  75 73 74 20 62 65 20 63  | files.must be c|
000025b0  6c 65 61 72 6c 79 20 69  6e 64 69 63 61 74 65 64  |learly indicated|
000025c0  20 69 6e 20 61 63 63 6f  6d 70 61 6e 79 69 6e 67  | in accompanying|
000025d0  20 64 6f 63 75 6d 65 6e  74 61 74 69 6f 6e 2e 0a  | documentation..|
000025e0  28 32 29 20 49 66 20 6f  6e 6c 79 20 65 78 65 63  |(2) If only exec|
000025f0  75 74 61 62 6c 65 20 63  6f 64 65 20 69 73 20 64  |utable code is d|
00002600  69 73 74 72 69 62 75 74  65 64 2c 20 74 68 65 6e  |istributed, then|
00002610  20 74 68 65 20 61 63 63  6f 6d 70 61 6e 79 69 6e  | the accompanyin|
00002620  67 0a 64 6f 63 75 6d 65  6e 74 61 74 69 6f 6e 20  |g.documentation |
00002630  6d 75 73 74 20 73 74 61  74 65 20 74 68 61 74 20  |must state that |
00002640  22 74 68 69 73 20 73 6f  66 74 77 61 72 65 20 69  |"this software i|
00002650  73 20 62 61 73 65 64 20  69 6e 20 70 61 72 74 20  |s based in part |
00002660  6f 6e 20 74 68 65 20 77  6f 72 6b 20 6f 66 0a 74  |on the work of.t|
00002670  68 65 20 49 6e 64 65 70  65 6e 64 65 6e 74 20 4a  |he Independent J|
00002680  50 45 47 20 47 72 6f 75  70 22 2e 0a 28 33 29 20  |PEG Group"..(3) |
00002690  50 65 72 6d 69 73 73 69  6f 6e 20 66 6f 72 20 75  |Permission for u|
000026a0  73 65 20 6f 66 20 74 68  69 73 20 73 6f 66 74 77  |se of this softw|
000026b0  61 72 65 20 69 73 20 67  72 61 6e 74 65 64 20 6f  |are is granted o|
000026c0  6e 6c 79 20 69 66 20 74  68 65 20 75 73 65 72 20  |nly if the user |
000026d0  61 63 63 65 70 74 73 0a  66 75 6c 6c 20 72 65 73  |accepts.full res|
000026e0  70 6f 6e 73 69 62 69 6c  69 74 79 20 66 6f 72 20  |ponsibility for |
000026f0  61 6e 79 20 75 6e 64 65  73 69 72 61 62 6c 65 20  |any undesirable |
00002700  63 6f 6e 73 65 71 75 65  6e 63 65 73 3b 20 74 68  |consequences; th|
00002710  65 20 61 75 74 68 6f 72  73 20 61 63 63 65 70 74  |e authors accept|
00002720  0a 4e 4f 20 4c 49 41 42  49 4c 49 54 59 20 66 6f  |.NO LIABILITY fo|
00002730  72 20 64 61 6d 61 67 65  73 20 6f 66 20 61 6e 79  |r damages of any|
00002740  20 6b 69 6e 64 2e 0a 0a  50 65 72 6d 69 73 73 69  | kind...Permissi|
00002750  6f 6e 20 69 73 20 4e 4f  54 20 67 72 61 6e 74 65  |on is NOT grante|
00002760  64 20 66 6f 72 20 74 68  65 20 75 73 65 20 6f 66  |d for the use of|
00002770  20 61 6e 79 20 61 75 74  68 6f 72 27 73 20 6e 61  | any author's na|
00002780  6d 65 20 6f 72 20 61 75  74 68 6f 72 27 73 20 63  |me or author's c|
00002790  6f 6d 70 61 6e 79 0a 6e  61 6d 65 20 69 6e 20 61  |ompany.name in a|
000027a0  64 76 65 72 74 69 73 69  6e 67 20 6f 72 20 70 75  |dvertising or pu|
000027b0  62 6c 69 63 69 74 79 20  72 65 6c 61 74 69 6e 67  |blicity relating|
000027c0  20 74 6f 20 74 68 69 73  20 73 6f 66 74 77 61 72  | to this softwar|
000027d0  65 20 6f 72 20 70 72 6f  64 75 63 74 73 20 64 65  |e or products de|
000027e0  72 69 76 65 64 0a 66 72  6f 6d 20 69 74 2e 20 20  |rived.from it.  |
000027f0  54 68 69 73 20 73 6f 66  74 77 61 72 65 20 6d 61  |This software ma|
00002800  79 20 62 65 20 72 65 66  65 72 72 65 64 20 74 6f  |y be referred to|
00002810  20 6f 6e 6c 79 20 61 73  20 22 74 68 65 20 49 6e  | only as "the In|
00002820  64 65 70 65 6e 64 65 6e  74 20 4a 50 45 47 0a 47  |dependent JPEG.G|
00002830  72 6f 75 70 27 73 20 73  6f 66 74 77 61 72 65 22  |roup's software"|
00002840  2e 0a 0a 57 65 20 73 70  65 63 69 66 69 63 61 6c  |...We specifical|
00002850  6c 79 20 70 65 72 6d 69  74 20 61 6e 64 20 65 6e  |ly permit and en|
00002860  63 6f 75 72 61 67 65 20  74 68 65 20 75 73 65 20  |courage the use |
00002870  6f 66 20 74 68 69 73 20  73 6f 66 74 77 61 72 65  |of this software|
00002880  20 61 73 20 74 68 65 20  62 61 73 69 73 20 6f 66  | as the basis of|
00002890  0a 63 6f 6d 6d 65 72 63  69 61 6c 20 70 72 6f 64  |.commercial prod|
000028a0  75 63 74 73 2c 20 70 72  6f 76 69 64 65 64 20 74  |ucts, provided t|
000028b0  68 61 74 20 61 6c 6c 20  77 61 72 72 61 6e 74 79  |hat all warranty|
000028c0  20 6f 72 20 6c 69 61 62  69 6c 69 74 79 20 63 6c  | or liability cl|
000028d0  61 69 6d 73 20 61 72 65  0a 61 73 73 75 6d 65 64  |aims are.assumed|
000028e0  20 62 79 20 74 68 65 20  70 72 6f 64 75 63 74 20  | by the product |
000028f0  76 65 6e 64 6f 72 2e 0a  0a 49 74 20 61 70 70 65  |vendor...It appe|
00002900  61 72 73 20 74 68 61 74  20 74 68 65 20 61 72 69  |ars that the ari|
00002910  74 68 6d 65 74 69 63 20  63 6f 64 69 6e 67 20 6f  |thmetic coding o|
00002920  70 74 69 6f 6e 20 6f 66  20 74 68 65 20 4a 50 45  |ption of the JPE|
00002930  47 20 73 70 65 63 20 69  73 20 63 6f 76 65 72 65  |G spec is covere|
00002940  64 20 62 79 0a 70 61 74  65 6e 74 73 20 6f 77 6e  |d by.patents own|
00002950  65 64 20 62 79 20 49 42  4d 20 61 6e 64 20 41 54  |ed by IBM and AT|
00002960  26 54 2c 20 61 73 20 77  65 6c 6c 20 61 73 20 61  |&T, as well as a|
00002970  20 70 65 6e 64 69 6e 67  20 4a 61 70 61 6e 65 73  | pending Japanes|
00002980  65 20 70 61 74 65 6e 74  20 6f 66 0a 4d 69 74 73  |e patent of.Mits|
00002990  75 62 69 73 68 69 2e 20  20 48 65 6e 63 65 20 61  |ubishi.  Hence a|
000029a0  72 69 74 68 6d 65 74 69  63 20 63 6f 64 69 6e 67  |rithmetic coding|
000029b0  20 63 61 6e 6e 6f 74 20  6c 65 67 61 6c 6c 79 20  | cannot legally |
000029c0  62 65 20 75 73 65 64 20  77 69 74 68 6f 75 74 20  |be used without |
000029d0  6f 62 74 61 69 6e 69 6e  67 0a 6f 6e 65 20 6f 72  |obtaining.one or|
000029e0  20 6d 6f 72 65 20 6c 69  63 65 6e 73 65 73 2e 20  | more licenses. |
000029f0  20 46 6f 72 20 74 68 69  73 20 72 65 61 73 6f 6e  | For this reason|
00002a00  2c 20 73 75 70 70 6f 72  74 20 66 6f 72 20 61 72  |, support for ar|
00002a10  69 74 68 6d 65 74 69 63  20 63 6f 64 69 6e 67 20  |ithmetic coding |
00002a20  68 61 73 20 62 65 65 6e  0a 72 65 6d 6f 76 65 64  |has been.removed|
00002a30  20 66 72 6f 6d 20 74 68  65 20 66 72 65 65 20 4a  | from the free J|
00002a40  50 45 47 20 73 6f 66 74  77 61 72 65 2e 20 20 28  |PEG software.  (|
00002a50  53 69 6e 63 65 20 61 72  69 74 68 6d 65 74 69 63  |Since arithmetic|
00002a60  20 63 6f 64 69 6e 67 20  70 72 6f 76 69 64 65 73  | coding provides|
00002a70  20 6f 6e 6c 79 20 61 0a  6d 61 72 67 69 6e 61 6c  | only a.marginal|
00002a80  20 67 61 69 6e 20 6f 76  65 72 20 74 68 65 20 75  | gain over the u|
00002a90  6e 70 61 74 65 6e 74 65  64 20 48 75 66 66 6d 61  |npatented Huffma|
00002aa0  6e 20 6d 6f 64 65 2c 20  69 74 20 69 73 20 75 6e  |n mode, it is un|
00002ab0  6c 69 6b 65 6c 79 20 74  68 61 74 20 76 65 72 79  |likely that very|
00002ac0  20 6d 61 6e 79 0a 70 65  6f 70 6c 65 20 77 69 6c  | many.people wil|
00002ad0  6c 20 63 68 6f 6f 73 65  20 74 6f 20 75 73 65 20  |l choose to use |
00002ae0  69 74 2e 20 20 49 66 20  79 6f 75 20 64 6f 20 6f  |it.  If you do o|
00002af0  62 74 61 69 6e 20 74 68  65 20 6e 65 63 65 73 73  |btain the necess|
00002b00  61 72 79 20 6c 69 63 65  6e 73 65 73 2c 0a 63 6f  |ary licenses,.co|
00002b10  6e 74 61 63 74 20 6a 70  65 67 2d 69 6e 66 6f 40  |ntact jpeg-info@|
00002b20  75 75 6e 65 74 2e 75 75  2e 6e 65 74 20 66 6f 72  |uunet.uu.net for|
00002b30  20 61 20 63 6f 70 79 20  6f 66 20 6f 75 72 20 61  | a copy of our a|
00002b40  72 69 74 68 6d 65 74 69  63 20 63 6f 64 69 6e 67  |rithmetic coding|
00002b50  20 6d 6f 64 75 6c 65 73  2e 29 0a 53 6f 20 66 61  | modules.).So fa|
00002b60  72 20 61 73 20 77 65 20  61 72 65 20 61 77 61 72  |r as we are awar|
00002b70  65 2c 20 74 68 65 72 65  20 61 72 65 20 6e 6f 20  |e, there are no |
00002b80  70 61 74 65 6e 74 20 72  65 73 74 72 69 63 74 69  |patent restricti|
00002b90  6f 6e 73 20 6f 6e 20 74  68 65 20 72 65 6d 61 69  |ons on the remai|
00002ba0  6e 69 6e 67 0a 63 6f 64  65 2e 0a 0a 0a 57 65 20  |ning.code....We |
00002bb0  61 72 65 20 72 65 71 75  69 72 65 64 20 74 6f 20  |are required to |
00002bc0  73 74 61 74 65 20 74 68  61 74 0a 20 20 20 20 22  |state that.    "|
00002bd0  54 68 65 20 47 72 61 70  68 69 63 73 20 49 6e 74  |The Graphics Int|
00002be0  65 72 63 68 61 6e 67 65  20 46 6f 72 6d 61 74 28  |erchange Format(|
00002bf0  63 29 20 69 73 20 74 68  65 20 43 6f 70 79 72 69  |c) is the Copyri|
00002c00  67 68 74 20 70 72 6f 70  65 72 74 79 20 6f 66 0a  |ght property of.|
00002c10  20 20 20 20 43 6f 6d 70  75 53 65 72 76 65 20 49  |    CompuServe I|
00002c20  6e 63 6f 72 70 6f 72 61  74 65 64 2e 20 20 47 49  |ncorporated.  GI|
00002c30  46 28 73 6d 29 20 69 73  20 61 20 53 65 72 76 69  |F(sm) is a Servi|
00002c40  63 65 20 4d 61 72 6b 20  70 72 6f 70 65 72 74 79  |ce Mark property|
00002c50  20 6f 66 0a 20 20 20 20  43 6f 6d 70 75 53 65 72  | of.    CompuSer|
00002c60  76 65 20 49 6e 63 6f 72  70 6f 72 61 74 65 64 2e  |ve Incorporated.|
00002c70  22 0a 0a 0a 54 4f 20 44  4f 0a 3d 3d 3d 3d 3d 0a  |"...TO DO.=====.|
00002c80  0a 4d 61 6e 79 20 6f 66  20 74 68 65 20 6d 6f 64  |.Many of the mod|
00002c90  75 6c 65 73 20 6e 65 65  64 20 66 6c 65 73 68 69  |ules need fleshi|
00002ca0  6e 67 20 6f 75 74 20 74  6f 20 70 72 6f 76 69 64  |ng out to provid|
00002cb0  65 20 6d 6f 72 65 20 63  6f 6d 70 6c 65 74 65 0a  |e more complete.|
00002cc0  69 6d 70 6c 65 6d 65 6e  74 61 74 69 6f 6e 73 2c  |implementations,|
00002cd0  20 6f 72 20 74 6f 20 70  72 6f 76 69 64 65 20 66  | or to provide f|
00002ce0  61 73 74 65 72 20 70 61  74 68 73 20 66 6f 72 20  |aster paths for |
00002cf0  63 6f 6d 6d 6f 6e 20 63  61 73 65 73 2e 0a 49 6d  |common cases..Im|
00002d00  70 72 6f 76 69 6e 67 20  74 68 65 20 73 70 65 65  |proving the spee|
00002d10  64 20 77 69 6c 6c 20 62  65 20 74 68 65 20 6e 65  |d will be the ne|
00002d20  78 74 20 62 69 67 20 77  6f 72 6b 20 69 74 65 6d  |xt big work item|
00002d30  20 66 6f 72 20 74 68 65  20 4a 50 45 47 20 67 72  | for the JPEG gr|
00002d40  6f 75 70 2e 0a 0a 57 65  27 64 20 61 70 70 72 65  |oup...We'd appre|
00002d50  63 69 61 74 65 20 69 74  20 69 66 20 70 65 6f 70  |ciate it if peop|
00002d60  6c 65 20 77 6f 75 6c 64  20 63 6f 6d 70 69 6c 65  |le would compile|
00002d70  20 61 6e 64 20 63 68 65  63 6b 20 6f 75 74 20 74  | and check out t|
00002d80  68 65 20 63 6f 64 65 20  6f 6e 20 61 73 20 77 69  |he code on as wi|
00002d90  64 65 20 61 0a 76 61 72  69 65 74 79 20 6f 66 20  |de a.variety of |
00002da0  73 79 73 74 65 6d 73 20  61 73 20 70 6f 73 73 69  |systems as possi|
00002db0  62 6c 65 2c 20 61 6e 64  20 72 65 70 6f 72 74 20  |ble, and report |
00002dc0  61 6e 79 20 70 6f 72 74  61 62 69 6c 69 74 79 20  |any portability |
00002dd0  70 72 6f 62 6c 65 6d 73  0a 65 6e 63 6f 75 6e 74  |problems.encount|
00002de0  65 72 65 64 20 28 77 69  74 68 20 73 6f 6c 75 74  |ered (with solut|
00002df0  69 6f 6e 73 2c 20 69 66  20 70 6f 73 73 69 62 6c  |ions, if possibl|
00002e00  65 29 2e 20 20 43 68 65  63 6b 73 20 6f 66 20 66  |e).  Checks of f|
00002e10  69 6c 65 20 63 6f 6d 70  61 74 69 62 69 6c 69 74  |ile compatibilit|
00002e20  79 20 77 69 74 68 0a 6f  74 68 65 72 20 4a 50 45  |y with.other JPE|
00002e30  47 20 69 6d 70 6c 65 6d  65 6e 74 61 74 69 6f 6e  |G implementation|
00002e40  73 20 77 6f 75 6c 64 20  61 6c 73 6f 20 62 65 20  |s would also be |
00002e50  6f 66 20 69 6e 74 65 72  65 73 74 2e 20 20 46 69  |of interest.  Fi|
00002e60  6e 61 6c 6c 79 2c 20 77  65 20 77 6f 75 6c 64 0a  |nally, we would.|
00002e70  61 70 70 72 65 63 69 61  74 65 20 63 6f 64 65 20  |appreciate code |
00002e80  70 72 6f 66 69 6c 65 73  20 73 68 6f 77 69 6e 67  |profiles showing|
00002e90  20 77 68 65 72 65 20 74  68 65 20 6d 6f 73 74 20  | where the most |
00002ea0  74 69 6d 65 20 69 73 20  73 70 65 6e 74 2c 20 65  |time is spent, e|
00002eb0  73 70 65 63 69 61 6c 6c  79 20 6f 6e 0a 75 6e 75  |specially on.unu|
00002ec0  73 75 61 6c 20 73 79 73  74 65 6d 73 2e 0a 0a 50  |sual systems...P|
00002ed0  6c 65 61 73 65 20 73 65  6e 64 20 62 75 67 20 72  |lease send bug r|
00002ee0  65 70 6f 72 74 73 2c 20  6f 66 66 65 72 73 20 6f  |eports, offers o|
00002ef0  66 20 68 65 6c 70 2c 20  65 74 63 2e 20 74 6f 20  |f help, etc. to |
00002f00  6a 70 65 67 2d 69 6e 66  6f 40 75 75 6e 65 74 2e  |jpeg-info@uunet.|
00002f10  75 75 2e 6e 65 74 2e 0a  0a 55 53 41 47 45 20 69  |uu.net...USAGE i|
00002f20  6e 73 74 72 75 63 74 69  6f 6e 73 20 66 6f 72 20  |nstructions for |
00002f30  74 68 65 20 49 6e 64 65  70 65 6e 64 65 6e 74 20  |the Independent |
00002f40  4a 50 45 47 20 47 72 6f  75 70 27 73 20 4a 50 45  |JPEG Group's JPE|
00002f50  47 20 73 6f 66 74 77 61  72 65 0a 3d 3d 3d 3d 3d  |G software.=====|
00002f60  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00002f90  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 0a 0a 47 45  |============..GE|
00002fa0  4e 45 52 41 4c 20 55 53  41 47 45 0a 0a 57 65 20  |NERAL USAGE..We |
00002fb0  70 72 6f 76 69 64 65 20  74 77 6f 20 70 72 6f 67  |provide two prog|
00002fc0  72 61 6d 73 2c 20 63 6a  70 65 67 20 74 6f 20 63  |rams, cjpeg to c|
00002fd0  6f 6d 70 72 65 73 73 20  61 6e 20 69 6d 61 67 65  |ompress an image|
00002fe0  20 66 69 6c 65 20 69 6e  74 6f 20 4a 50 45 47 20  | file into JPEG |
00002ff0  66 6f 72 6d 61 74 2c 0a  61 6e 64 20 64 6a 70 65  |format,.and djpe|
00003000  67 20 74 6f 20 64 65 63  6f 6d 70 72 65 73 73 20  |g to decompress |
00003010  61 20 4a 50 45 47 20 66  69 6c 65 20 62 61 63 6b  |a JPEG file back|
00003020  20 69 6e 74 6f 20 61 20  63 6f 6e 76 65 6e 74 69  | into a conventi|
00003030  6f 6e 61 6c 20 69 6d 61  67 65 20 66 6f 72 6d 61  |onal image forma|
00003040  74 2e 0a 0a 4f 6e 20 55  6e 69 78 2d 6c 69 6b 65  |t...On Unix-like|
00003050  20 73 79 73 74 65 6d 73  2c 20 79 6f 75 20 73 61  | systems, you sa|
00003060  79 3a 0a 20 20 20 20 20  20 20 20 63 6a 70 65 67  |y:.        cjpeg|
00003070  20 5b 73 77 69 74 63 68  65 73 5d 20 5b 69 6d 61  | [switches] [ima|
00003080  67 65 66 69 6c 65 5d 20  3e 6a 70 65 67 66 69 6c  |gefile] >jpegfil|
00003090  65 0a 6f 72 0a 20 20 20  20 20 20 20 20 64 6a 70  |e.or.        djp|
000030a0  65 67 20 5b 73 77 69 74  63 68 65 73 5d 20 5b 6a  |eg [switches] [j|
000030b0  70 65 67 66 69 6c 65 5d  20 20 3e 69 6d 61 67 65  |pegfile]  >image|
000030c0  66 69 6c 65 0a 54 68 65  20 70 72 6f 67 72 61 6d  |file.The program|
000030d0  73 20 72 65 61 64 20 74  68 65 20 73 70 65 63 69  |s read the speci|
000030e0  66 69 65 64 20 69 6e 70  75 74 20 66 69 6c 65 2c  |fied input file,|
000030f0  20 6f 72 20 73 74 61 6e  64 61 72 64 20 69 6e 70  | or standard inp|
00003100  75 74 20 69 66 20 6e 6f  6e 65 20 69 73 0a 6e 61  |ut if none is.na|
00003110  6d 65 64 2e 20 20 54 68  65 79 20 61 6c 77 61 79  |med.  They alway|
00003120  73 20 77 72 69 74 65 20  74 6f 20 73 74 61 6e 64  |s write to stand|
00003130  61 72 64 20 6f 75 74 70  75 74 20 28 77 69 74 68  |ard output (with|
00003140  20 74 72 61 63 65 2f 65  72 72 6f 72 20 6d 65 73  | trace/error mes|
00003150  73 61 67 65 73 20 74 6f  0a 73 74 61 6e 64 61 72  |sages to.standar|
00003160  64 20 65 72 72 6f 72 29  2e 20 20 54 68 65 73 65  |d error).  These|
00003170  20 63 6f 6e 76 65 6e 74  69 6f 6e 73 20 61 72 65  | conventions are|
00003180  20 68 61 6e 64 79 20 66  6f 72 20 70 69 70 69 6e  | handy for pipin|
00003190  67 20 69 6d 61 67 65 73  20 62 65 74 77 65 65 6e  |g images between|
000031a0  0a 70 72 6f 67 72 61 6d  73 2e 0a 0a 4f 6e 20 6d  |.programs...On m|
000031b0  6f 73 74 20 6e 6f 6e 2d  55 6e 69 78 20 73 79 73  |ost non-Unix sys|
000031c0  74 65 6d 73 2c 20 79 6f  75 20 73 61 79 3a 0a 20  |tems, you say:. |
000031d0  20 20 20 20 20 20 20 63  6a 70 65 67 20 5b 73 77  |       cjpeg [sw|
000031e0  69 74 63 68 65 73 5d 20  69 6d 61 67 65 66 69 6c  |itches] imagefil|
000031f0  65 20 6a 70 65 67 66 69  6c 65 0a 6f 72 0a 20 20  |e jpegfile.or.  |
00003200  20 20 20 20 20 20 64 6a  70 65 67 20 5b 73 77 69  |      djpeg [swi|
00003210  74 63 68 65 73 5d 20 6a  70 65 67 66 69 6c 65 20  |tches] jpegfile |
00003220  20 69 6d 61 67 65 66 69  6c 65 0a 69 2e 65 2e 2c  | imagefile.i.e.,|
00003230  20 62 6f 74 68 20 74 68  65 20 69 6e 70 75 74 20  | both the input |
00003240  61 6e 64 20 6f 75 74 70  75 74 20 66 69 6c 65 73  |and output files|
00003250  20 61 72 65 20 6e 61 6d  65 64 20 6f 6e 20 74 68  | are named on th|
00003260  65 20 63 6f 6d 6d 61 6e  64 20 6c 69 6e 65 2e 20  |e command line. |
00003270  20 54 68 69 73 0a 73 74  79 6c 65 20 69 73 20 61  | This.style is a|
00003280  20 6c 69 74 74 6c 65 20  6d 6f 72 65 20 66 6f 6f  | little more foo|
00003290  6c 70 72 6f 6f 66 2c 20  61 6e 64 20 69 74 20 6c  |lproof, and it l|
000032a0  6f 73 65 73 20 6e 6f 20  66 75 6e 63 74 69 6f 6e  |oses no function|
000032b0  61 6c 69 74 79 20 69 66  20 79 6f 75 20 64 6f 6e  |ality if you don|
000032c0  27 74 0a 68 61 76 65 20  70 69 70 65 73 2e 20 20  |'t.have pipes.  |
000032d0  28 59 6f 75 20 63 61 6e  20 67 65 74 20 74 68 69  |(You can get thi|
000032e0  73 20 73 74 79 6c 65 20  6f 6e 20 55 6e 69 78 20  |s style on Unix |
000032f0  74 6f 6f 2c 20 69 66 20  79 6f 75 20 70 72 65 66  |too, if you pref|
00003300  65 72 2c 20 62 79 20 64  65 66 69 6e 69 6e 67 0a  |er, by defining.|
00003310  54 57 4f 5f 46 49 4c 45  5f 43 4f 4d 4d 41 4e 44  |TWO_FILE_COMMAND|
00003320  4c 49 4e 45 20 77 68 65  6e 20 79 6f 75 20 63 6f  |LINE when you co|
00003330  6d 70 69 6c 65 20 74 68  65 20 70 72 6f 67 72 61  |mpile the progra|
00003340  6d 73 3b 20 73 65 65 20  53 45 54 55 50 2e 29 0a  |ms; see SETUP.).|
00003350  0a 54 68 65 20 63 75 72  72 65 6e 74 6c 79 20 73  |.The currently s|
00003360  75 70 70 6f 72 74 65 64  20 69 6d 61 67 65 20 66  |upported image f|
00003370  69 6c 65 20 66 6f 72 6d  61 74 73 20 61 72 65 3a  |ile formats are:|
00003380  20 50 50 4d 20 28 50 42  4d 50 4c 55 53 20 63 6f  | PPM (PBMPLUS co|
00003390  6c 6f 72 20 66 6f 72 6d  61 74 29 2c 0a 50 47 4d  |lor format),.PGM|
000033a0  20 28 50 42 4d 50 4c 55  53 20 67 72 61 79 2d 73  | (PBMPLUS gray-s|
000033b0  63 61 6c 65 20 66 6f 72  6d 61 74 29 2c 20 47 49  |cale format), GI|
000033c0  46 20 61 6e 64 20 54 61  72 67 61 2e 20 63 6a 70  |F and Targa. cjp|
000033d0  65 67 20 72 65 63 6f 67  6e 69 7a 65 73 20 74 68  |eg recognizes th|
000033e0  65 20 69 6e 70 75 74 0a  69 6d 61 67 65 20 66 6f  |e input.image fo|
000033f0  72 6d 61 74 20 61 75 74  6f 6d 61 74 69 63 61 6c  |rmat automatical|
00003400  6c 79 2c 20 77 69 74 68  20 74 68 65 20 65 78 63  |ly, with the exc|
00003410  65 70 74 69 6f 6e 20 6f  66 20 73 6f 6d 65 20 54  |eption of some T|
00003420  61 72 67 61 2d 66 6f 72  6d 61 74 20 66 69 6c 65  |arga-format file|
00003430  73 2e 20 20 59 6f 75 0a  68 61 76 65 20 74 6f 20  |s.  You.have to |
00003440  74 65 6c 6c 20 64 6a 70  65 67 20 77 68 69 63 68  |tell djpeg which|
00003450  20 66 6f 72 6d 61 74 20  74 6f 20 67 65 6e 65 72  | format to gener|
00003460  61 74 65 20 28 50 50 4d  20 62 79 20 64 65 66 61  |ate (PPM by defa|
00003470  75 6c 74 29 2e 0a 0a 54  68 65 20 6f 6e 6c 79 20  |ult)...The only |
00003480  4a 50 45 47 20 66 69 6c  65 20 66 6f 72 6d 61 74  |JPEG file format|
00003490  20 63 75 72 72 65 6e 74  6c 79 20 73 75 70 70 6f  | currently suppo|
000034a0  72 74 65 64 20 69 73 20  74 68 65 20 4a 46 49 46  |rted is the JFIF|
000034b0  20 66 6f 72 6d 61 74 2e  20 20 53 75 70 70 6f 72  | format.  Suppor|
000034c0  74 20 66 6f 72 0a 74 68  65 20 54 49 46 46 2f 4a  |t for.the TIFF/J|
000034d0  50 45 47 20 66 6f 72 6d  61 74 20 77 69 6c 6c 20  |PEG format will |
000034e0  70 72 6f 62 61 62 6c 79  20 62 65 20 61 64 64 65  |probably be adde|
000034f0  64 20 61 74 20 73 6f 6d  65 20 66 75 74 75 72 65  |d at some future|
00003500  20 64 61 74 65 2e 0a 0a  0a 43 4a 50 45 47 20 44  | date....CJPEG D|
00003510  45 54 41 49 4c 53 0a 0a  54 68 65 20 63 6f 6d 6d  |ETAILS..The comm|
00003520  61 6e 64 20 6c 69 6e 65  20 73 77 69 74 63 68 65  |and line switche|
00003530  73 20 66 6f 72 20 63 6a  70 65 67 20 61 72 65 3a  |s for cjpeg are:|
00003540  0a 0a 20 20 20 20 20 20  20 20 2d 51 20 71 75 61  |..        -Q qua|
00003550  6c 69 74 79 20 20 20 20  20 20 53 63 61 6c 65 20  |lity      Scale |
00003560  71 75 61 6e 74 69 7a 61  74 69 6f 6e 20 74 61 62  |quantization tab|
00003570  6c 65 73 20 74 6f 20 61  64 6a 75 73 74 20 69 6d  |les to adjust im|
00003580  61 67 65 20 71 75 61 6c  69 74 79 2e 0a 20 20 20  |age quality..   |
00003590  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000035a0  20 20 20 20 20 51 75 61  6c 69 74 79 20 69 73 20  |     Quality is |
000035b0  30 20 28 77 6f 72 73 74  29 20 74 6f 20 31 30 30  |0 (worst) to 100|
000035c0  20 28 62 65 73 74 29 3b  20 64 65 66 61 75 6c 74  | (best); default|
000035d0  20 69 73 20 37 35 2e 0a  20 20 20 20 20 20 20 20  | is 75..        |
000035e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000035f0  28 53 65 65 20 62 65 6c  6f 77 20 66 6f 72 20 6d  |(See below for m|
00003600  6f 72 65 20 69 6e 66 6f  2e 29 0a 0a 20 20 20 20  |ore info.)..    |
00003610  20 20 20 20 2d 6f 20 20  20 20 20 20 20 20 20 20  |    -o          |
00003620  20 20 20 20 50 65 72 66  6f 72 6d 20 6f 70 74 69  |    Perform opti|
00003630  6d 69 7a 61 74 69 6f 6e  20 6f 66 20 65 6e 74 72  |mization of entr|
00003640  6f 70 79 20 65 6e 63 6f  64 69 6e 67 20 70 61 72  |opy encoding par|
00003650  61 6d 65 74 65 72 73 2e  0a 20 20 20 20 20 20 20  |ameters..       |
00003660  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00003670  20 57 69 74 68 6f 75 74  20 74 68 69 73 2c 20 64  | Without this, d|
00003680  65 66 61 75 6c 74 20 65  6e 63 6f 64 69 6e 67 20  |efault encoding |
00003690  70 61 72 61 6d 65 74 65  72 73 20 61 72 65 20 75  |parameters are u|
000036a0  73 65 64 2e 0a 20 20 20  20 20 20 20 20 20 20 20  |sed..           |
000036b0  20 20 20 20 20 20 20 20  20 20 20 20 20 2d 6f 20  |             -o |
000036c0  75 73 75 61 6c 6c 79 20  6d 61 6b 65 73 20 74 68  |usually makes th|
000036d0  65 20 4a 50 45 47 20 66  69 6c 65 20 61 20 6c 69  |e JPEG file a li|
000036e0  74 74 6c 65 20 73 6d 61  6c 6c 65 72 2c 20 62 75  |ttle smaller, bu|
000036f0  74 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |t.              |
00003700  20 20 20 20 20 20 20 20  20 20 63 6a 70 65 67 20  |          cjpeg |
00003710  72 75 6e 73 20 73 6f 6d  65 77 68 61 74 20 73 6c  |runs somewhat sl|
00003720  6f 77 65 72 20 61 6e 64  20 6e 65 65 64 73 20 6d  |ower and needs m|
00003730  75 63 68 20 6d 6f 72 65  20 6d 65 6d 6f 72 79 2e  |uch more memory.|
00003740  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00003750  20 20 20 20 20 20 20 20  20 49 6d 61 67 65 20 71  |         Image q|
00003760  75 61 6c 69 74 79 20 61  6e 64 20 73 70 65 65 64  |uality and speed|
00003770  20 6f 66 20 64 65 63 6f  6d 70 72 65 73 73 69 6f  | of decompressio|
00003780  6e 20 61 72 65 20 75 6e  61 66 66 65 63 74 65 64  |n are unaffected|
00003790  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
000037a0  20 20 20 20 20 20 20 20  20 62 79 20 2d 6f 2e 0a  |         by -o..|
000037b0  0a 20 20 20 20 20 20 20  20 2d 54 20 20 20 20 20  |.        -T     |
000037c0  20 20 20 20 20 20 20 20  20 49 6e 70 75 74 20 66  |         Input f|
000037d0  69 6c 65 20 69 73 20 54  61 72 67 61 20 66 6f 72  |ile is Targa for|
000037e0  6d 61 74 2e 20 20 54 61  72 67 61 20 66 69 6c 65  |mat.  Targa file|
000037f0  73 20 74 68 61 74 20 63  6f 6e 74 61 69 6e 0a 20  |s that contain. |
00003800  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00003810  20 20 20 20 20 20 20 61  6e 20 22 69 64 65 6e 74  |       an "ident|
00003820  69 66 69 63 61 74 69 6f  6e 22 20 66 69 65 6c 64  |ification" field|
00003830  20 77 69 6c 6c 20 6e 6f  74 20 62 65 20 61 75 74  | will not be aut|
00003840  6f 6d 61 74 69 63 61 6c  6c 79 0a 20 20 20 20 20  |omatically.     |
00003850  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00003860  20 20 20 72 65 63 6f 67  6e 69 7a 65 64 20 62 79  |   recognized by|
00003870  20 63 6a 70 65 67 3b 20  66 6f 72 20 73 75 63 68  | cjpeg; for such|
00003880  20 66 69 6c 65 73 20 79  6f 75 20 6d 75 73 74 20  | files you must |
00003890  73 70 65 63 69 66 79 0a  20 20 20 20 20 20 20 20  |specify.        |
000038a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000038b0  2d 54 20 74 6f 20 66 6f  72 63 65 20 63 6a 70 65  |-T to force cjpe|
000038c0  67 20 74 6f 20 74 72 65  61 74 20 74 68 65 20 69  |g to treat the i|
000038d0  6e 70 75 74 20 61 73 20  54 61 72 67 61 20 66 6f  |nput as Targa fo|
000038e0  72 6d 61 74 2e 0a 0a 20  20 20 20 20 20 20 20 2d  |rmat...        -|
000038f0  49 20 20 20 20 20 20 20  20 20 20 20 20 20 20 47  |I              G|
00003900  65 6e 65 72 61 74 65 20  6e 6f 6e 69 6e 74 65 72  |enerate noninter|
00003910  6c 65 61 76 65 64 20 4a  50 45 47 20 66 69 6c 65  |leaved JPEG file|
00003920  20 28 6e 6f 74 20 79 65  74 20 73 75 70 70 6f 72  | (not yet suppor|
00003930  74 65 64 29 2e 0a 0a 20  20 20 20 20 20 20 20 2d  |ted)...        -|
00003940  61 20 20 20 20 20 20 20  20 20 20 20 20 20 20 55  |a              U|
00003950  73 65 20 61 72 69 74 68  6d 65 74 69 63 20 63 6f  |se arithmetic co|
00003960  64 69 6e 67 20 72 61 74  68 65 72 20 74 68 61 6e  |ding rather than|
00003970  20 48 75 66 66 6d 61 6e  20 63 6f 64 69 6e 67 2e  | Huffman coding.|
00003980  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00003990  20 20 20 20 20 20 20 20  20 28 4e 6f 74 20 63 75  |         (Not cu|
000039a0  72 72 65 6e 74 6c 79 20  73 75 70 70 6f 72 74 65  |rrently supporte|
000039b0  64 20 66 6f 72 20 6c 65  67 61 6c 20 72 65 61 73  |d for legal reas|
000039c0  6f 6e 73 2e 29 0a 0a 20  20 20 20 20 20 20 20 2d  |ons.)..        -|
000039d0  64 20 20 20 20 20 20 20  20 20 20 20 20 20 20 45  |d              E|
000039e0  6e 61 62 6c 65 20 64 65  62 75 67 20 70 72 69 6e  |nable debug prin|
000039f0  74 6f 75 74 2e 20 20 4d  6f 72 65 20 2d 64 27 73  |tout.  More -d's|
00003a00  20 67 69 76 65 20 6d 6f  72 65 20 70 72 69 6e 74  | give more print|
00003a10  6f 75 74 2e 0a 20 20 20  20 20 20 20 20 20 20 20  |out..           |
00003a20  20 20 20 20 20 20 20 20  20 20 20 20 20 41 6c 73  |             Als|
00003a30  6f 2c 20 76 65 72 73 69  6f 6e 20 69 6e 66 6f 72  |o, version infor|
00003a40  6d 61 74 69 6f 6e 20 69  73 20 70 72 69 6e 74 65  |mation is printe|
00003a50  64 20 61 74 20 73 74 61  72 74 75 70 2e 0a 0a 20  |d at startup... |
00003a60  20 20 20 20 20 20 20 2d  6d 20 6d 65 6d 6f 72 79  |       -m memory|
00003a70  20 20 20 20 20 20 20 53  65 74 20 6c 69 6d 69 74  |       Set limit|
00003a80  20 66 6f 72 20 61 6d 6f  75 6e 74 20 6f 66 20 6d  | for amount of m|
00003a90  65 6d 6f 72 79 20 74 6f  20 75 73 65 20 69 6e 20  |emory to use in |
00003aa0  70 72 6f 63 65 73 73 69  6e 67 0a 20 20 20 20 20  |processing.     |
00003ab0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00003ac0  20 20 20 6c 61 72 67 65  20 69 6d 61 67 65 73 2e  |   large images.|
00003ad0  20 20 56 61 6c 75 65 20  69 73 20 69 6e 20 74 68  |  Value is in th|
00003ae0  6f 75 73 61 6e 64 73 20  6f 66 20 62 79 74 65 73  |ousands of bytes|
00003af0  2c 20 6f 72 0a 20 20 20  20 20 20 20 20 20 20 20  |, or.           |
00003b00  20 20 20 20 20 20 20 20  20 20 20 20 20 6d 69 6c  |             mil|
00003b10  6c 69 6f 6e 73 20 6f 66  20 62 79 74 65 73 20 69  |lions of bytes i|
00003b20  66 20 22 4d 22 20 69 73  20 61 74 74 61 63 68 65  |f "M" is attache|
00003b30  64 20 74 6f 20 74 68 65  20 6e 75 6d 62 65 72 2e  |d to the number.|
00003b40  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00003b50  20 20 20 20 20 20 20 20  20 46 6f 72 20 65 78 61  |         For exa|
00003b60  6d 70 6c 65 2c 20 2d 6d  20 34 6d 20 73 65 6c 65  |mple, -m 4m sele|
00003b70  63 74 73 20 34 30 30 30  30 30 30 20 62 79 74 65  |cts 4000000 byte|
00003b80  73 2e 20 20 49 66 20 6d  6f 72 65 0a 20 20 20 20  |s.  If more.    |
00003b90  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00003ba0  20 20 20 20 73 70 61 63  65 20 69 73 20 6e 65 65  |    space is nee|
00003bb0  64 65 64 2c 20 74 65 6d  70 6f 72 61 72 79 20 66  |ded, temporary f|
00003bc0  69 6c 65 73 20 77 69 6c  6c 20 62 65 20 75 73 65  |iles will be use|
00003bd0  64 2e 0a 0a 54 68 65 20  2d 51 20 73 77 69 74 63  |d...The -Q switc|
00003be0  68 20 6c 65 74 73 20 79  6f 75 20 74 72 61 64 65  |h lets you trade|
00003bf0  20 6f 66 66 20 63 6f 6d  70 72 65 73 73 65 64 20  | off compressed |
00003c00  66 69 6c 65 20 73 69 7a  65 20 61 67 61 69 6e 73  |file size agains|
00003c10  74 20 71 75 61 6c 69 74  79 20 6f 66 20 74 68 65  |t quality of the|
00003c20  0a 72 65 63 6f 6e 73 74  72 75 63 74 65 64 20 69  |.reconstructed i|
00003c30  6d 61 67 65 3a 20 74 68  65 20 68 69 67 68 65 72  |mage: the higher|
00003c40  20 74 68 65 20 2d 51 20  73 65 74 74 69 6e 67 2c  | the -Q setting,|
00003c50  20 74 68 65 20 6c 61 72  67 65 72 20 74 68 65 20  | the larger the |
00003c60  4a 50 45 47 20 66 69 6c  65 2c 20 61 6e 64 0a 74  |JPEG file, and.t|
00003c70  68 65 20 63 6c 6f 73 65  72 20 74 68 65 20 6f 75  |he closer the ou|
00003c80  74 70 75 74 20 69 6d 61  67 65 20 77 69 6c 6c 20  |tput image will |
00003c90  62 65 20 74 6f 20 74 68  65 20 6f 72 69 67 69 6e  |be to the origin|
00003ca0  61 6c 20 69 6e 70 75 74  2e 20 20 4e 6f 72 6d 61  |al input.  Norma|
00003cb0  6c 6c 79 20 79 6f 75 20  77 61 6e 74 0a 74 6f 20  |lly you want.to |
00003cc0  75 73 65 20 74 68 65 20  6c 6f 77 65 73 74 20 2d  |use the lowest -|
00003cd0  51 20 73 65 74 74 69 6e  67 20 28 73 6d 61 6c 6c  |Q setting (small|
00003ce0  65 73 74 20 66 69 6c 65  29 20 74 68 61 74 20 64  |est file) that d|
00003cf0  65 63 6f 6d 70 72 65 73  73 65 73 20 69 6e 74 6f  |ecompresses into|
00003d00  20 73 6f 6d 65 74 68 69  6e 67 0a 76 69 73 75 61  | something.visua|
00003d10  6c 6c 79 20 69 6e 64 69  73 74 69 6e 67 75 69 73  |lly indistinguis|
00003d20  68 61 62 6c 65 20 66 72  6f 6d 20 74 68 65 20 6f  |hable from the o|
00003d30  72 69 67 69 6e 61 6c 20  69 6d 61 67 65 2e 20 20  |riginal image.  |
00003d40  46 6f 72 20 74 68 69 73  20 70 75 72 70 6f 73 65  |For this purpose|
00003d50  20 74 68 65 20 2d 51 0a  73 65 74 74 69 6e 67 20  | the -Q.setting |
00003d60  73 68 6f 75 6c 64 20 62  65 20 62 65 74 77 65 65  |should be betwee|
00003d70  6e 20 35 30 20 61 6e 64  20 39 35 3b 20 74 68 65  |n 50 and 95; the|
00003d80  20 64 65 66 61 75 6c 74  20 6f 66 20 37 35 20 69  | default of 75 i|
00003d90  73 20 6f 66 74 65 6e 20  61 62 6f 75 74 20 72 69  |s often about ri|
00003da0  67 68 74 2e 0a 49 66 20  79 6f 75 20 73 65 65 20  |ght..If you see |
00003db0  64 65 66 65 63 74 73 20  61 74 20 2d 51 20 37 35  |defects at -Q 75|
00003dc0  2c 20 74 68 65 6e 20 67  6f 20 75 70 20 35 20 6f  |, then go up 5 o|
00003dd0  72 20 31 30 20 63 6f 75  6e 74 73 20 61 74 20 61  |r 10 counts at a|
00003de0  20 74 69 6d 65 20 75 6e  74 69 6c 20 79 6f 75 20  | time until you |
00003df0  61 72 65 0a 68 61 70 70  79 20 77 69 74 68 20 74  |are.happy with t|
00003e00  68 65 20 6f 75 74 70 75  74 20 69 6d 61 67 65 2e  |he output image.|
00003e10  20 20 28 54 68 65 20 6f  70 74 69 6d 61 6c 20 73  |  (The optimal s|
00003e20  65 74 74 69 6e 67 20 77  69 6c 6c 20 76 61 72 79  |etting will vary|
00003e30  20 66 72 6f 6d 20 6f 6e  65 20 69 6d 61 67 65 20  | from one image |
00003e40  74 6f 0a 61 6e 6f 74 68  65 72 2e 29 0a 0a 2d 51  |to.another.)..-Q|
00003e50  20 31 30 30 20 77 69 6c  6c 20 67 65 6e 65 72 61  | 100 will genera|
00003e60  74 65 20 61 20 71 75 61  6e 74 69 7a 61 74 69 6f  |te a quantizatio|
00003e70  6e 20 74 61 62 6c 65 20  6f 66 20 61 6c 6c 20 31  |n table of all 1|
00003e80  27 73 2c 20 65 6c 69 6d  69 6e 61 74 69 6e 67 20  |'s, eliminating |
00003e90  6c 6f 73 73 20 69 6e 20  74 68 65 0a 71 75 61 6e  |loss in the.quan|
00003ea0  74 69 7a 61 74 69 6f 6e  20 73 74 65 70 20 28 62  |tization step (b|
00003eb0  75 74 20 74 68 65 72 65  20 69 73 20 73 74 69 6c  |ut there is stil|
00003ec0  6c 20 69 6e 66 6f 72 6d  61 74 69 6f 6e 20 6c 6f  |l information lo|
00003ed0  73 73 20 69 6e 20 73 75  62 73 61 6d 70 6c 69 6e  |ss in subsamplin|
00003ee0  67 2c 20 61 73 20 77 65  6c 6c 0a 61 73 20 72 6f  |g, as well.as ro|
00003ef0  75 6e 64 6f 66 66 20 65  72 72 6f 72 29 2e 20 20  |undoff error).  |
00003f00  54 68 69 73 20 73 65 74  74 69 6e 67 20 69 73 20  |This setting is |
00003f10  6d 61 69 6e 6c 79 20 6f  66 20 69 6e 74 65 72 65  |mainly of intere|
00003f20  73 74 20 66 6f 72 20 65  78 70 65 72 69 6d 65 6e  |st for experimen|
00003f30  74 61 6c 0a 70 75 72 70  6f 73 65 73 2e 20 20 2d  |tal.purposes.  -|
00003f40  51 20 76 61 6c 75 65 73  20 61 62 6f 76 65 20 61  |Q values above a|
00003f50  62 6f 75 74 20 39 35 20  61 72 65 20 4e 4f 54 20  |bout 95 are NOT |
00003f60  72 65 63 6f 6d 6d 65 6e  64 65 64 20 66 6f 72 20  |recommended for |
00003f70  6e 6f 72 6d 61 6c 20 75  73 65 3b 20 74 68 65 0a  |normal use; the.|
00003f80  63 6f 6d 70 72 65 73 73  65 64 20 66 69 6c 65 20  |compressed file |
00003f90  73 69 7a 65 20 67 6f 65  73 20 75 70 20 64 72 61  |size goes up dra|
00003fa0  6d 61 74 69 63 61 6c 6c  79 20 66 6f 72 20 68 61  |matically for ha|
00003fb0  72 64 6c 79 20 61 6e 79  20 67 61 69 6e 20 69 6e  |rdly any gain in|
00003fc0  20 6f 75 74 70 75 74 20  69 6d 61 67 65 0a 71 75  | output image.qu|
00003fd0  61 6c 69 74 79 2e 0a 0a  49 6e 20 74 68 65 20 6f  |ality...In the o|
00003fe0  74 68 65 72 20 64 69 72  65 63 74 69 6f 6e 2c 20  |ther direction, |
00003ff0  2d 51 20 76 61 6c 75 65  73 20 62 65 6c 6f 77 20  |-Q values below |
00004000  35 30 20 77 69 6c 6c 20  70 72 6f 64 75 63 65 20  |50 will produce |
00004010  76 65 72 79 20 73 6d 61  6c 6c 20 66 69 6c 65 73  |very small files|
00004020  20 6f 66 0a 6c 6f 77 20  69 6d 61 67 65 20 71 75  | of.low image qu|
00004030  61 6c 69 74 79 2e 20 20  53 65 74 74 69 6e 67 73  |ality.  Settings|
00004040  20 61 72 6f 75 6e 64 20  35 20 74 6f 20 31 30 20  | around 5 to 10 |
00004050  6d 69 67 68 74 20 62 65  20 75 73 65 66 75 6c 20  |might be useful |
00004060  69 6e 20 70 72 65 70 61  72 69 6e 67 20 61 6e 0a  |in preparing an.|
00004070  69 6e 64 65 78 20 6f 66  20 61 20 6c 61 72 67 65  |index of a large|
00004080  20 69 6d 61 67 65 20 6c  69 62 72 61 72 79 2c 20  | image library, |
00004090  66 6f 72 20 65 78 61 6d  70 6c 65 2e 20 20 54 72  |for example.  Tr|
000040a0  79 20 2d 51 20 32 20 28  6f 72 20 73 6f 29 20 66  |y -Q 2 (or so) f|
000040b0  6f 72 20 73 6f 6d 65 0a  61 6d 75 73 69 6e 67 20  |or some.amusing |
000040c0  43 75 62 69 73 74 20 65  66 66 65 63 74 73 2e 20  |Cubist effects. |
000040d0  20 28 4e 6f 74 65 3a 20  2d 51 20 76 61 6c 75 65  | (Note: -Q value|
000040e0  73 20 62 65 6c 6f 77 20  61 62 6f 75 74 20 32 35  |s below about 25|
000040f0  20 67 65 6e 65 72 61 74  65 20 32 2d 62 79 74 65  | generate 2-byte|
00004100  0a 71 75 61 6e 74 69 7a  61 74 69 6f 6e 20 74 61  |.quantization ta|
00004110  62 6c 65 73 2c 20 77 68  69 63 68 20 61 72 65 20  |bles, which are |
00004120  63 6f 6e 73 69 64 65 72  65 64 20 6f 70 74 69 6f  |considered optio|
00004130  6e 61 6c 20 69 6e 20 74  68 65 20 4a 50 45 47 20  |nal in the JPEG |
00004140  73 74 61 6e 64 61 72 64  2e 0a 63 6a 70 65 67 20  |standard..cjpeg |
00004150  65 6d 69 74 73 20 61 20  77 61 72 6e 69 6e 67 20  |emits a warning |
00004160  6d 65 73 73 61 67 65 20  77 68 65 6e 20 79 6f 75  |message when you|
00004170  20 67 69 76 65 20 73 75  63 68 20 61 20 2d 51 20  | give such a -Q |
00004180  76 61 6c 75 65 2c 20 62  65 63 61 75 73 65 20 73  |value, because s|
00004190  6f 6d 65 0a 63 6f 6d 6d  65 72 63 69 61 6c 20 4a  |ome.commercial J|
000041a0  50 45 47 20 70 72 6f 67  72 61 6d 73 20 6d 61 79  |PEG programs may|
000041b0  20 62 65 20 75 6e 61 62  6c 65 20 74 6f 20 64 65  | be unable to de|
000041c0  63 6f 64 65 20 74 68 65  20 72 65 73 75 6c 74 69  |code the resulti|
000041d0  6e 67 20 66 69 6c 65 2e  29 0a 0a 0a 44 4a 50 45  |ng file.)...DJPE|
000041e0  47 20 44 45 54 41 49 4c  53 0a 0a 54 68 65 20 63  |G DETAILS..The c|
000041f0  6f 6d 6d 61 6e 64 20 6c  69 6e 65 20 73 77 69 74  |ommand line swit|
00004200  63 68 65 73 20 66 6f 72  20 64 6a 70 65 67 20 61  |ches for djpeg a|
00004210  72 65 3a 0a 0a 20 20 20  20 20 20 20 20 2d 47 20  |re:..        -G |
00004220  20 20 20 20 20 20 20 20  20 20 20 20 20 53 65 6c  |             Sel|
00004230  65 63 74 20 47 49 46 20  6f 75 74 70 75 74 20 66  |ect GIF output f|
00004240  6f 72 6d 61 74 20 28 69  6d 70 6c 69 65 73 20 2d  |ormat (implies -|
00004250  71 2c 20 77 69 74 68 20  64 65 66 61 75 6c 74 0a  |q, with default.|
00004260  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004270  20 20 20 20 20 20 20 20  6f 66 20 32 35 36 20 63  |        of 256 c|
00004280  6f 6c 6f 72 73 29 2e 0a  0a 20 20 20 20 20 20 20  |olors)...       |
00004290  20 2d 50 20 20 20 20 20  20 20 20 20 20 20 20 20  | -P             |
000042a0  20 53 65 6c 65 63 74 20  50 50 4d 20 6f 72 20 50  | Select PPM or P|
000042b0  47 4d 20 6f 75 74 70 75  74 20 66 6f 72 6d 61 74  |GM output format|
000042c0  20 28 74 68 69 73 20 69  73 20 74 68 65 20 64 65  | (this is the de|
000042d0  66 61 75 6c 74 29 2e 0a  20 20 20 20 20 20 20 20  |fault)..        |
000042e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000042f0  50 47 4d 20 69 73 20 65  6d 69 74 74 65 64 20 69  |PGM is emitted i|
00004300  66 20 74 68 65 20 4a 50  45 47 20 66 69 6c 65 20  |f the JPEG file |
00004310  69 73 20 67 72 61 79 2d  73 63 61 6c 65 20 6f 72  |is gray-scale or|
00004320  20 69 66 20 2d 67 0a 20  20 20 20 20 20 20 20 20  | if -g.         |
00004330  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 69  |               i|
00004340  73 20 73 70 65 63 69 66  69 65 64 2e 0a 0a 20 20  |s specified...  |
00004350  20 20 20 20 20 20 2d 52  20 20 20 20 20 20 20 20  |      -R        |
00004360  20 20 20 20 20 20 53 65  6c 65 63 74 20 52 4c 45  |      Select RLE|
00004370  20 6f 75 74 70 75 74 20  66 6f 72 6d 61 74 2e 20  | output format. |
00004380  20 52 65 71 75 69 72 65  73 20 55 52 54 20 6c 69  | Requires URT li|
00004390  62 72 61 72 79 2e 0a 0a  20 20 20 20 20 20 20 20  |brary...        |
000043a0  2d 54 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |-T              |
000043b0  53 65 6c 65 63 74 20 54  61 72 67 61 20 6f 75 74  |Select Targa out|
000043c0  70 75 74 20 66 6f 72 6d  61 74 2e 20 20 47 72 61  |put format.  Gra|
000043d0  79 2d 73 63 61 6c 65 20  66 6f 72 6d 61 74 20 69  |y-scale format i|
000043e0  73 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |s.              |
000043f0  20 20 20 20 20 20 20 20  20 20 65 6d 69 74 74 65  |          emitte|
00004400  64 20 69 66 20 74 68 65  20 4a 50 45 47 20 66 69  |d if the JPEG fi|
00004410  6c 65 20 69 73 20 67 72  61 79 2d 73 63 61 6c 65  |le is gray-scale|
00004420  20 6f 72 20 69 66 20 2d  67 20 69 73 0a 20 20 20  | or if -g is.   |
00004430  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004440  20 20 20 20 20 73 70 65  63 69 66 69 65 64 3b 20  |     specified; |
00004450  6f 74 68 65 72 77 69 73  65 2c 20 63 6f 6c 6f 72  |otherwise, color|
00004460  6d 61 70 70 65 64 20 66  6f 72 6d 61 74 20 69 73  |mapped format is|
00004470  20 65 6d 69 74 74 65 64  0a 20 20 20 20 20 20 20  | emitted.       |
00004480  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004490  20 69 66 20 2d 71 20 69  73 20 73 70 65 63 69 66  | if -q is specif|
000044a0  69 65 64 3b 20 6f 74 68  65 72 77 69 73 65 2c 20  |ied; otherwise, |
000044b0  32 34 2d 62 69 74 20 66  75 6c 6c 2d 63 6f 6c 6f  |24-bit full-colo|
000044c0  72 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |r.              |
000044d0  20 20 20 20 20 20 20 20  20 20 66 6f 72 6d 61 74  |          format|
000044e0  20 69 73 20 65 6d 69 74  74 65 64 2e 0a 0a 20 20  | is emitted...  |
000044f0  20 20 20 20 20 20 2d 67  20 20 20 20 20 20 20 20  |      -g        |
00004500  20 20 20 20 20 20 46 6f  72 63 65 20 67 72 61 79  |      Force gray|
00004510  2d 73 63 61 6c 65 20 6f  75 74 70 75 74 20 65 76  |-scale output ev|
00004520  65 6e 20 69 66 20 69 6e  70 75 74 20 69 73 20 63  |en if input is c|
00004530  6f 6c 6f 72 2e 0a 0a 20  20 20 20 20 20 20 20 2d  |olor...        -|
00004540  71 20 4e 20 20 20 20 20  20 20 20 20 20 20 20 51  |q N            Q|
00004550  75 61 6e 74 69 7a 65 20  74 6f 20 4e 20 63 6f 6c  |uantize to N col|
00004560  6f 72 73 2e 20 20 54 68  69 73 20 72 65 64 75 63  |ors.  This reduc|
00004570  65 73 20 74 68 65 20 6e  75 6d 62 65 72 20 6f 66  |es the number of|
00004580  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00004590  20 20 20 20 20 20 20 20  20 63 6f 6c 6f 72 73 20  |         colors |
000045a0  69 6e 20 74 68 65 20 6f  75 74 70 75 74 20 69 6d  |in the output im|
000045b0  61 67 65 20 73 6f 20 74  68 61 74 20 69 74 20 63  |age so that it c|
000045c0  61 6e 20 62 65 20 64 69  73 70 6c 61 79 65 64 0a  |an be displayed.|
000045d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000045e0  20 20 20 20 20 20 20 20  6f 6e 20 61 20 63 6f 6c  |        on a col|
000045f0  6f 72 6d 61 70 70 65 64  20 64 69 73 70 6c 61 79  |ormapped display|
00004600  20 6f 72 20 73 74 6f 72  65 64 20 69 6e 20 61 20  | or stored in a |
00004610  63 6f 6c 6f 72 6d 61 70  70 65 64 0a 20 20 20 20  |colormapped.    |
00004620  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004630  20 20 20 20 66 69 6c 65  20 66 6f 72 6d 61 74 2e  |    file format.|
00004640  20 20 46 6f 72 20 65 78  61 6d 70 6c 65 2c 20 69  |  For example, i|
00004650  66 20 79 6f 75 20 68 61  76 65 20 61 6e 20 38 2d  |f you have an 8-|
00004660  62 69 74 0a 20 20 20 20  20 20 20 20 20 20 20 20  |bit.            |
00004670  20 20 20 20 20 20 20 20  20 20 20 20 64 69 73 70  |            disp|
00004680  6c 61 79 2c 20 79 6f 75  27 64 20 6e 65 65 64 20  |lay, you'd need |
00004690  74 6f 20 71 75 61 6e 74  69 7a 65 20 74 6f 20 32  |to quantize to 2|
000046a0  35 36 20 6f 72 20 66 65  77 65 72 20 63 6f 6c 6f  |56 or fewer colo|
000046b0  72 73 2e 0a 0a 20 20 20  20 20 20 20 20 2d 44 20  |rs...        -D |
000046c0  20 20 20 20 20 20 20 20  20 20 20 20 20 44 6f 20  |             Do |
000046d0  6e 6f 74 20 75 73 65 20  64 69 74 68 65 72 69 6e  |not use ditherin|
000046e0  67 20 69 6e 20 63 6f 6c  6f 72 20 71 75 61 6e 74  |g in color quant|
000046f0  69 7a 61 74 69 6f 6e 2e  0a 20 20 20 20 20 20 20  |ization..       |
00004700  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004710  20 42 79 20 64 65 66 61  75 6c 74 2c 20 46 6c 6f  | By default, Flo|
00004720  79 64 2d 53 74 65 69 6e  62 65 72 67 20 64 69 74  |yd-Steinberg dit|
00004730  68 65 72 69 6e 67 20 69  73 20 61 70 70 6c 69 65  |hering is applie|
00004740  64 20 77 68 65 6e 0a 20  20 20 20 20 20 20 20 20  |d when.         |
00004750  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 71  |               q|
00004760  75 61 6e 74 69 7a 69 6e  67 20 63 6f 6c 6f 72 73  |uantizing colors|
00004770  2c 20 62 75 74 20 6f 6e  20 73 6f 6d 65 20 69 6d  |, but on some im|
00004780  61 67 65 73 20 64 69 74  68 65 72 69 6e 67 20 6d  |ages dithering m|
00004790  61 79 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |ay.             |
000047a0  20 20 20 20 20 20 20 20  20 20 20 72 65 73 75 6c  |           resul|
000047b0  74 20 69 6e 20 6f 62 6a  65 63 74 69 6f 6e 61 62  |t in objectionab|
000047c0  6c 65 20 22 67 72 61 69  6e 69 6e 65 73 73 22 2e  |le "graininess".|
000047d0  20 20 49 66 20 74 68 61  74 0a 20 20 20 20 20 20  |  If that.      |
000047e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000047f0  20 20 68 61 70 70 65 6e  73 2c 20 79 6f 75 20 63  |  happens, you c|
00004800  61 6e 20 74 75 72 6e 20  6f 66 66 20 64 69 74 68  |an turn off dith|
00004810  65 72 69 6e 67 20 77 69  74 68 20 2d 44 2e 0a 20  |ering with -D.. |
00004820  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004830  20 20 20 20 20 20 20 2d  44 20 69 73 20 69 67 6e  |       -D is ign|
00004840  6f 72 65 64 20 75 6e 6c  65 73 73 20 79 6f 75 20  |ored unless you |
00004850  61 6c 73 6f 20 73 61 79  20 2d 71 20 6f 72 20 2d  |also say -q or -|
00004860  47 2e 0a 0a 20 20 20 20  20 20 20 20 2d 31 20 20  |G...        -1  |
00004870  20 20 20 20 20 20 20 20  20 20 20 20 55 73 65 20  |            Use |
00004880  6f 6e 65 2d 70 61 73 73  20 69 6e 73 74 65 61 64  |one-pass instead|
00004890  20 6f 66 20 74 77 6f 2d  70 61 73 73 20 63 6f 6c  | of two-pass col|
000048a0  6f 72 20 71 75 61 6e 74  69 7a 61 74 69 6f 6e 2e  |or quantization.|
000048b0  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
000048c0  20 20 20 20 20 20 20 20  20 54 68 65 20 6f 6e 65  |         The one|
000048d0  2d 70 61 73 73 20 6d 65  74 68 6f 64 20 69 73 20  |-pass method is |
000048e0  66 61 73 74 65 72 20 61  6e 64 20 6e 65 65 64 73  |faster and needs|
000048f0  20 6c 65 73 73 20 6d 65  6d 6f 72 79 2c 0a 20 20  | less memory,.  |
00004900  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004910  20 20 20 20 20 20 62 75  74 20 69 74 20 70 72 6f  |      but it pro|
00004920  64 75 63 65 73 20 61 20  6c 6f 77 65 72 2d 71 75  |duces a lower-qu|
00004930  61 6c 69 74 79 20 69 6d  61 67 65 2e 0a 20 20 20  |ality image..   |
00004940  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004950  20 20 20 20 20 2d 31 20  69 73 20 69 67 6e 6f 72  |     -1 is ignor|
00004960  65 64 20 75 6e 6c 65 73  73 20 79 6f 75 20 61 6c  |ed unless you al|
00004970  73 6f 20 73 61 79 20 2d  71 20 6f 72 20 2d 47 2e  |so say -q or -G.|
00004980  20 20 41 6c 73 6f 2c 0a  20 20 20 20 20 20 20 20  |  Also,.        |
00004990  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000049a0  74 68 65 20 6f 6e 65 2d  70 61 73 73 20 6d 65 74  |the one-pass met|
000049b0  68 6f 64 20 69 73 20 61  6c 77 61 79 73 20 75 73  |hod is always us|
000049c0  65 64 20 66 6f 72 20 67  72 61 79 2d 73 63 61 6c  |ed for gray-scal|
000049d0  65 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |e.              |
000049e0  20 20 20 20 20 20 20 20  20 20 6f 75 74 70 75 74  |          output|
000049f0  20 28 74 68 65 20 74 77  6f 2d 70 61 73 73 20 6d  | (the two-pass m|
00004a00  65 74 68 6f 64 20 69 73  20 6e 6f 20 69 6d 70 72  |ethod is no impr|
00004a10  6f 76 65 6d 65 6e 74 20  74 68 65 6e 29 2e 0a 0a  |ovement then)...|
00004a20  20 20 20 20 20 20 20 20  2d 62 20 20 20 20 20 20  |        -b      |
00004a30  20 20 20 20 20 20 20 20  50 65 72 66 6f 72 6d 20  |        Perform |
00004a40  63 72 6f 73 73 2d 62 6c  6f 63 6b 20 73 6d 6f 6f  |cross-block smoo|
00004a50  74 68 69 6e 67 2e 20 20  54 68 69 73 20 69 73 20  |thing.  This is |
00004a60  71 75 69 74 65 0a 20 20  20 20 20 20 20 20 20 20  |quite.          |
00004a70  20 20 20 20 20 20 20 20  20 20 20 20 20 20 6d 65  |              me|
00004a80  6d 6f 72 79 2d 69 6e 74  65 6e 73 69 76 65 20 61  |mory-intensive a|
00004a90  6e 64 20 6f 6e 6c 79 20  73 65 65 6d 73 20 74 6f  |nd only seems to|
00004aa0  20 69 6d 70 72 6f 76 65  20 74 68 65 20 69 6d 61  | improve the ima|
00004ab0  67 65 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |ge.             |
00004ac0  20 20 20 20 20 20 20 20  20 20 20 61 74 20 76 65  |           at ve|
00004ad0  72 79 20 6c 6f 77 20 71  75 61 6c 69 74 79 20 73  |ry low quality s|
00004ae0  65 74 74 69 6e 67 73 20  28 2d 51 20 31 30 20 74  |ettings (-Q 10 t|
00004af0  6f 20 32 30 20 6f 72 20  73 6f 29 2e 0a 20 20 20  |o 20 or so)..   |
00004b00  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004b10  20 20 20 20 20 41 74 20  6e 6f 72 6d 61 6c 20 2d  |     At normal -|
00004b20  51 20 73 65 74 74 69 6e  67 73 20 69 74 20 6d 61  |Q settings it ma|
00004b30  79 20 6d 61 6b 65 20 74  68 65 20 69 6d 61 67 65  |y make the image|
00004b40  20 77 6f 72 73 65 2e 0a  0a 20 20 20 20 20 20 20  | worse...       |
00004b50  20 2d 64 20 20 20 20 20  20 20 20 20 20 20 20 20  | -d             |
00004b60  20 45 6e 61 62 6c 65 20  64 65 62 75 67 20 70 72  | Enable debug pr|
00004b70  69 6e 74 6f 75 74 2e 20  20 4d 6f 72 65 20 2d 64  |intout.  More -d|
00004b80  27 73 20 67 69 76 65 20  6d 6f 72 65 20 70 72 69  |'s give more pri|
00004b90  6e 74 6f 75 74 2e 0a 20  20 20 20 20 20 20 20 20  |ntout..         |
00004ba0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 41  |               A|
00004bb0  6c 73 6f 2c 20 76 65 72  73 69 6f 6e 20 69 6e 66  |lso, version inf|
00004bc0  6f 72 6d 61 74 69 6f 6e  20 69 73 20 70 72 69 6e  |ormation is prin|
00004bd0  74 65 64 20 61 74 20 73  74 61 72 74 75 70 2e 0a  |ted at startup..|
00004be0  0a 20 20 20 20 20 20 20  20 2d 6d 20 6d 65 6d 6f  |.        -m memo|
00004bf0  72 79 20 20 20 20 20 20  20 53 65 74 20 6c 69 6d  |ry       Set lim|
00004c00  69 74 20 66 6f 72 20 61  6d 6f 75 6e 74 20 6f 66  |it for amount of|
00004c10  20 6d 65 6d 6f 72 79 20  74 6f 20 75 73 65 20 69  | memory to use i|
00004c20  6e 20 70 72 6f 63 65 73  73 69 6e 67 0a 20 20 20  |n processing.   |
00004c30  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004c40  20 20 20 20 20 6c 61 72  67 65 20 69 6d 61 67 65  |     large image|
00004c50  73 2e 20 20 56 61 6c 75  65 20 69 73 20 69 6e 20  |s.  Value is in |
00004c60  74 68 6f 75 73 61 6e 64  73 20 6f 66 20 62 79 74  |thousands of byt|
00004c70  65 73 2c 20 6f 72 0a 20  20 20 20 20 20 20 20 20  |es, or.         |
00004c80  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 6d  |               m|
00004c90  69 6c 6c 69 6f 6e 73 20  6f 66 20 62 79 74 65 73  |illions of bytes|
00004ca0  20 69 66 20 22 4d 22 20  69 73 20 61 74 74 61 63  | if "M" is attac|
00004cb0  68 65 64 20 74 6f 20 74  68 65 20 6e 75 6d 62 65  |hed to the numbe|
00004cc0  72 2e 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |r..             |
00004cd0  20 20 20 20 20 20 20 20  20 20 20 46 6f 72 20 65  |           For e|
00004ce0  78 61 6d 70 6c 65 2c 20  2d 6d 20 34 6d 20 73 65  |xample, -m 4m se|
00004cf0  6c 65 63 74 73 20 34 30  30 30 30 30 30 20 62 79  |lects 4000000 by|
00004d00  74 65 73 2e 20 20 49 66  20 6d 6f 72 65 0a 20 20  |tes.  If more.  |
00004d10  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00004d20  20 20 20 20 20 20 73 70  61 63 65 20 69 73 20 6e  |      space is n|
00004d30  65 65 64 65 64 2c 20 74  65 6d 70 6f 72 61 72 79  |eeded, temporary|
00004d40  20 66 69 6c 65 73 20 77  69 6c 6c 20 62 65 20 75  | files will be u|
00004d50  73 65 64 2e 0a 0a 0a 48  49 4e 54 53 0a 0a 41 76  |sed....HINTS..Av|
00004d60  6f 69 64 20 72 75 6e 6e  69 6e 67 20 61 6e 20 69  |oid running an i|
00004d70  6d 61 67 65 20 74 68 72  6f 75 67 68 20 61 20 73  |mage through a s|
00004d80  65 72 69 65 73 20 6f 66  20 4a 50 45 47 20 63 6f  |eries of JPEG co|
00004d90  6d 70 72 65 73 73 69 6f  6e 2f 64 65 63 6f 6d 70  |mpression/decomp|
00004da0  72 65 73 73 69 6f 6e 0a  63 79 63 6c 65 73 2e 20  |ression.cycles. |
00004db0  20 49 6d 61 67 65 20 71  75 61 6c 69 74 79 20 6c  | Image quality l|
00004dc0  6f 73 73 20 77 69 6c 6c  20 61 63 63 75 6d 75 6c  |oss will accumul|
00004dd0  61 74 65 3b 20 61 66 74  65 72 20 74 65 6e 20 6f  |ate; after ten o|
00004de0  72 20 73 6f 20 63 79 63  6c 65 73 20 74 68 65 20  |r so cycles the |
00004df0  69 6d 61 67 65 0a 6d 61  79 20 62 65 20 6e 6f 74  |image.may be not|
00004e00  69 63 65 61 62 6c 79 20  77 6f 72 73 65 20 74 68  |iceably worse th|
00004e10  61 6e 20 69 74 20 77 61  73 20 61 66 74 65 72 20  |an it was after |
00004e20  6f 6e 65 20 63 79 63 6c  65 2e 20 20 49 74 27 73  |one cycle.  It's|
00004e30  20 62 65 73 74 20 74 6f  20 75 73 65 20 61 0a 6c  | best to use a.l|
00004e40  6f 73 73 6c 65 73 73 20  66 6f 72 6d 61 74 20 77  |ossless format w|
00004e50  68 69 6c 65 20 6d 61 6e  69 70 75 6c 61 74 69 6e  |hile manipulatin|
00004e60  67 20 61 6e 20 69 6d 61  67 65 2c 20 74 68 65 6e  |g an image, then|
00004e70  20 63 6f 6e 76 65 72 74  20 74 6f 20 4a 50 45 47  | convert to JPEG|
00004e80  20 66 6f 72 6d 61 74 20  77 68 65 6e 0a 79 6f 75  | format when.you|
00004e90  20 61 72 65 20 72 65 61  64 79 20 74 6f 20 66 69  | are ready to fi|
00004ea0  6c 65 20 74 68 65 20 69  6d 61 67 65 20 61 77 61  |le the image awa|
00004eb0  79 2e 0a 0a 54 68 65 20  2d 6f 20 6f 70 74 69 6f  |y...The -o optio|
00004ec0  6e 20 74 6f 20 63 6a 70  65 67 20 69 73 20 77 6f  |n to cjpeg is wo|
00004ed0  72 74 68 20 75 73 69 6e  67 20 77 68 65 6e 20 79  |rth using when y|
00004ee0  6f 75 20 61 72 65 20 6d  61 6b 69 6e 67 20 61 20  |ou are making a |
00004ef0  22 66 69 6e 61 6c 22 20  76 65 72 73 69 6f 6e 0a  |"final" version.|
00004f00  66 6f 72 20 70 6f 73 74  69 6e 67 20 6f 72 20 61  |for posting or a|
00004f10  72 63 68 69 76 69 6e 67  2e 20 20 49 74 27 73 20  |rchiving.  It's |
00004f20  61 6c 73 6f 20 61 20 77  69 6e 20 77 68 65 6e 20  |also a win when |
00004f30  79 6f 75 20 61 72 65 20  75 73 69 6e 67 20 6c 6f  |you are using lo|
00004f40  77 20 2d 51 20 73 65 74  74 69 6e 67 73 0a 74 6f  |w -Q settings.to|
00004f50  20 6d 61 6b 65 20 76 65  72 79 20 73 6d 61 6c 6c  | make very small|
00004f60  20 4a 50 45 47 20 66 69  6c 65 73 3b 20 74 68 65  | JPEG files; the|
00004f70  20 70 65 72 63 65 6e 74  61 67 65 20 69 6d 70 72  | percentage impr|
00004f80  6f 76 65 6d 65 6e 74 20  69 73 20 6f 66 74 65 6e  |ovement is often|
00004f90  20 61 20 6c 6f 74 20 6d  6f 72 65 0a 74 68 61 6e  | a lot more.than|
00004fa0  20 69 74 20 69 73 20 6f  6e 20 6c 61 72 67 65 72  | it is on larger|
00004fb0  20 66 69 6c 65 73 2e 0a  0a 54 68 65 20 64 65 66  | files...The def|
00004fc0  61 75 6c 74 20 6d 65 6d  6f 72 79 20 75 73 61 67  |ault memory usag|
00004fd0  65 20 6c 69 6d 69 74 20  28 2d 6d 29 20 69 73 20  |e limit (-m) is |
00004fe0  73 65 74 20 77 68 65 6e  20 74 68 65 20 73 6f 66  |set when the sof|
00004ff0  74 77 61 72 65 20 69 73  20 63 6f 6d 70 69 6c 65  |tware is compile|
00005000  64 2e 0a 49 66 20 79 6f  75 20 67 65 74 20 61 6e  |d..If you get an|
00005010  20 22 69 6e 73 75 66 66  69 63 69 65 6e 74 20 6d  | "insufficient m|
00005020  65 6d 6f 72 79 22 20 65  72 72 6f 72 2c 20 74 72  |emory" error, tr|
00005030  79 20 73 70 65 63 69 66  79 69 6e 67 20 61 20 73  |y specifying a s|
00005040  6d 61 6c 6c 65 72 20 2d  6d 20 76 61 6c 75 65 2c  |maller -m value,|
00005050  0a 65 76 65 6e 20 2d 6d  20 30 20 74 6f 20 75 73  |.even -m 0 to us|
00005060  65 20 74 68 65 20 61 62  73 6f 6c 75 74 65 20 6d  |e the absolute m|
00005070  69 6e 69 6d 75 6d 20 73  70 61 63 65 2e 20 20 59  |inimum space.  Y|
00005080  6f 75 20 6d 61 79 20 77  61 6e 74 20 74 6f 20 72  |ou may want to r|
00005090  65 63 6f 6d 70 69 6c 65  20 77 69 74 68 0a 61 20  |ecompile with.a |
000050a0  73 6d 61 6c 6c 65 72 20  64 65 66 61 75 6c 74 20  |smaller default |
000050b0  76 61 6c 75 65 20 69 66  20 74 68 69 73 20 68 61  |value if this ha|
000050c0  70 70 65 6e 73 20 6f 66  74 65 6e 2e 0a 0a 64 6a  |ppens often...dj|
000050d0  70 65 67 20 77 69 74 68  20 74 77 6f 2d 70 61 73  |peg with two-pas|
000050e0  73 20 63 6f 6c 6f 72 20  71 75 61 6e 74 69 7a 61  |s color quantiza|
000050f0  74 69 6f 6e 20 72 65 71  75 69 72 65 73 20 61 20  |tion requires a |
00005100  67 6f 6f 64 20 64 65 61  6c 20 6f 66 20 73 70 61  |good deal of spa|
00005110  63 65 3b 20 6f 6e 0a 4d  53 2d 44 4f 53 20 6d 61  |ce; on.MS-DOS ma|
00005120  63 68 69 6e 65 73 20 69  74 20 6d 61 79 20 72 75  |chines it may ru|
00005130  6e 20 6f 75 74 20 6f 66  20 6d 65 6d 6f 72 79 20  |n out of memory |
00005140  65 76 65 6e 20 77 69 74  68 20 2d 6d 20 30 2e 20  |even with -m 0. |
00005150  20 49 6e 20 74 68 61 74  20 63 61 73 65 20 79 6f  | In that case yo|
00005160  75 0a 63 61 6e 20 73 74  69 6c 6c 20 64 65 63 6f  |u.can still deco|
00005170  6d 70 72 65 73 73 2c 20  77 69 74 68 20 73 6f 6d  |mpress, with som|
00005180  65 20 6c 6f 73 73 20 6f  66 20 69 6d 61 67 65 20  |e loss of image |
00005190  71 75 61 6c 69 74 79 2c  20 62 79 20 73 70 65 63  |quality, by spec|
000051a0  69 66 79 69 6e 67 20 2d  31 0a 66 6f 72 20 6f 6e  |ifying -1.for on|
000051b0  65 2d 70 61 73 73 20 71  75 61 6e 74 69 7a 61 74  |e-pass quantizat|
000051c0  69 6f 6e 2e 0a 0a 49 66  20 6d 6f 72 65 20 73 70  |ion...If more sp|
000051d0  61 63 65 20 69 73 20 6e  65 65 64 65 64 20 74 68  |ace is needed th|
000051e0  61 6e 20 77 69 6c 6c 20  66 69 74 20 69 6e 20 74  |an will fit in t|
000051f0  68 65 20 61 76 61 69 6c  61 62 6c 65 20 6d 61 69  |he available mai|
00005200  6e 20 6d 65 6d 6f 72 79  20 28 61 73 0a 64 65 74  |n memory (as.det|
00005210  65 72 6d 69 6e 65 64 20  62 79 20 2d 6d 29 2c 20  |ermined by -m), |
00005220  74 65 6d 70 6f 72 61 72  79 20 66 69 6c 65 73 20  |temporary files |
00005230  77 69 6c 6c 20 62 65 20  75 73 65 64 2e 20 20 54  |will be used.  T|
00005240  68 65 20 74 65 6d 70 6f  72 61 72 79 20 66 69 6c  |he temporary fil|
00005250  65 73 20 61 72 65 20 6f  66 74 65 6e 0a 72 61 74  |es are often.rat|
00005260  68 65 72 20 6c 61 72 67  65 3a 20 69 6e 20 74 79  |her large: in ty|
00005270  70 69 63 61 6c 20 63 61  73 65 73 20 74 68 65 79  |pical cases they|
00005280  20 6f 63 63 75 70 79 20  74 68 72 65 65 20 62 79  | occupy three by|
00005290  74 65 73 20 70 65 72 20  70 69 78 65 6c 2c 20 66  |tes per pixel, f|
000052a0  6f 72 20 65 78 61 6d 70  6c 65 0a 33 2a 38 30 30  |or example.3*800|
000052b0  2a 36 30 30 20 3d 20 31  2e 34 34 4d 62 20 66 6f  |*600 = 1.44Mb fo|
000052c0  72 20 61 6e 20 38 30 30  78 36 30 30 20 69 6d 61  |r an 800x600 ima|
000052d0  67 65 2e 20 20 49 66 20  79 6f 75 20 64 6f 6e 27  |ge.  If you don'|
000052e0  74 20 68 61 76 65 20 65  6e 6f 75 67 68 20 66 72  |t have enough fr|
000052f0  65 65 20 64 69 73 6b 0a  73 70 61 63 65 2c 20 6c  |ee disk.space, l|
00005300  65 61 76 65 20 6f 75 74  20 2d 6f 20 28 66 6f 72  |eave out -o (for|
00005310  20 63 6a 70 65 67 29 20  6f 72 20 73 70 65 63 69  | cjpeg) or speci|
00005320  66 79 20 2d 31 20 28 66  6f 72 20 64 6a 70 65 67  |fy -1 (for djpeg|
00005330  29 2e 0a                                          |)..|
00005333