17dd7cddfSDavid du ColombierThe Independent JPEG Group's JPEG software 27dd7cddfSDavid du Colombier========================================== 37dd7cddfSDavid du Colombier 4*593dc095SDavid du ColombierREADME for release 6b of 27-Mar-1998 5*593dc095SDavid du Colombier==================================== 67dd7cddfSDavid du Colombier 77dd7cddfSDavid du ColombierThis distribution contains the sixth public release of the Independent JPEG 87dd7cddfSDavid du ColombierGroup's free JPEG software. You are welcome to redistribute this software and 97dd7cddfSDavid du Colombierto use it for any purpose, subject to the conditions under LEGAL ISSUES, below. 107dd7cddfSDavid du Colombier 117dd7cddfSDavid du ColombierSerious users of this software (particularly those incorporating it into 127dd7cddfSDavid du Colombierlarger programs) should contact IJG at jpeg-info@uunet.uu.net to be added to 137dd7cddfSDavid du Colombierour electronic mailing list. Mailing list members are notified of updates 147dd7cddfSDavid du Colombierand have a chance to participate in technical discussions, etc. 157dd7cddfSDavid du Colombier 16*593dc095SDavid du ColombierThis software is the work of Tom Lane, Philip Gladstone, Jim Boucher, 17*593dc095SDavid du ColombierLee Crocker, Julian Minguillon, Luis Ortiz, George Phillips, Davide Rossi, 18*593dc095SDavid du ColombierGuido Vollbeding, Ge' Weijers, and other members of the Independent JPEG 19*593dc095SDavid du ColombierGroup. 207dd7cddfSDavid du Colombier 217dd7cddfSDavid du ColombierIJG is not affiliated with the official ISO JPEG standards committee. 227dd7cddfSDavid du Colombier 237dd7cddfSDavid du Colombier 247dd7cddfSDavid du ColombierDOCUMENTATION ROADMAP 257dd7cddfSDavid du Colombier===================== 267dd7cddfSDavid du Colombier 277dd7cddfSDavid du ColombierThis file contains the following sections: 287dd7cddfSDavid du Colombier 297dd7cddfSDavid du ColombierOVERVIEW General description of JPEG and the IJG software. 307dd7cddfSDavid du ColombierLEGAL ISSUES Copyright, lack of warranty, terms of distribution. 317dd7cddfSDavid du ColombierREFERENCES Where to learn more about JPEG. 327dd7cddfSDavid du ColombierARCHIVE LOCATIONS Where to find newer versions of this software. 337dd7cddfSDavid du ColombierRELATED SOFTWARE Other stuff you should get. 347dd7cddfSDavid du ColombierFILE FORMAT WARS Software *not* to get. 357dd7cddfSDavid du ColombierTO DO Plans for future IJG releases. 367dd7cddfSDavid du Colombier 377dd7cddfSDavid du ColombierOther documentation files in the distribution are: 387dd7cddfSDavid du Colombier 397dd7cddfSDavid du ColombierUser documentation: 407dd7cddfSDavid du Colombier install.doc How to configure and install the IJG software. 417dd7cddfSDavid du Colombier usage.doc Usage instructions for cjpeg, djpeg, jpegtran, 427dd7cddfSDavid du Colombier rdjpgcom, and wrjpgcom. 437dd7cddfSDavid du Colombier *.1 Unix-style man pages for programs (same info as usage.doc). 447dd7cddfSDavid du Colombier wizard.doc Advanced usage instructions for JPEG wizards only. 457dd7cddfSDavid du Colombier change.log Version-to-version change highlights. 467dd7cddfSDavid du ColombierProgrammer and internal documentation: 477dd7cddfSDavid du Colombier libjpeg.doc How to use the JPEG library in your own programs. 487dd7cddfSDavid du Colombier example.c Sample code for calling the JPEG library. 497dd7cddfSDavid du Colombier structure.doc Overview of the JPEG library's internal structure. 507dd7cddfSDavid du Colombier filelist.doc Road map of IJG files. 517dd7cddfSDavid du Colombier coderules.doc Coding style rules --- please read if you contribute code. 527dd7cddfSDavid du Colombier 537dd7cddfSDavid du ColombierPlease read at least the files install.doc and usage.doc. Useful information 547dd7cddfSDavid du Colombiercan also be found in the JPEG FAQ (Frequently Asked Questions) article. See 557dd7cddfSDavid du ColombierARCHIVE LOCATIONS below to find out where to obtain the FAQ article. 567dd7cddfSDavid du Colombier 577dd7cddfSDavid du ColombierIf you want to understand how the JPEG code works, we suggest reading one or 587dd7cddfSDavid du Colombiermore of the REFERENCES, then looking at the documentation files (in roughly 597dd7cddfSDavid du Colombierthe order listed) before diving into the code. 607dd7cddfSDavid du Colombier 617dd7cddfSDavid du Colombier 627dd7cddfSDavid du ColombierOVERVIEW 637dd7cddfSDavid du Colombier======== 647dd7cddfSDavid du Colombier 657dd7cddfSDavid du ColombierThis package contains C software to implement JPEG image compression and 667dd7cddfSDavid du Colombierdecompression. JPEG (pronounced "jay-peg") is a standardized compression 677dd7cddfSDavid du Colombiermethod for full-color and gray-scale images. JPEG is intended for compressing 687dd7cddfSDavid du Colombier"real-world" scenes; line drawings, cartoons and other non-realistic images 697dd7cddfSDavid du Colombierare not its strong suit. JPEG is lossy, meaning that the output image is not 707dd7cddfSDavid du Colombierexactly identical to the input image. Hence you must not use JPEG if you 717dd7cddfSDavid du Colombierhave to have identical output bits. However, on typical photographic images, 727dd7cddfSDavid du Colombiervery good compression levels can be obtained with no visible change, and 737dd7cddfSDavid du Colombierremarkably high compression levels are possible if you can tolerate a 747dd7cddfSDavid du Colombierlow-quality image. For more details, see the references, or just experiment 757dd7cddfSDavid du Colombierwith various compression settings. 767dd7cddfSDavid du Colombier 777dd7cddfSDavid du ColombierThis software implements JPEG baseline, extended-sequential, and progressive 787dd7cddfSDavid du Colombiercompression processes. Provision is made for supporting all variants of these 797dd7cddfSDavid du Colombierprocesses, although some uncommon parameter settings aren't implemented yet. 807dd7cddfSDavid du ColombierFor legal reasons, we are not distributing code for the arithmetic-coding 817dd7cddfSDavid du Colombiervariants of JPEG; see LEGAL ISSUES. We have made no provision for supporting 827dd7cddfSDavid du Colombierthe hierarchical or lossless processes defined in the standard. 837dd7cddfSDavid du Colombier 847dd7cddfSDavid du ColombierWe provide a set of library routines for reading and writing JPEG image files, 857dd7cddfSDavid du Colombierplus two sample applications "cjpeg" and "djpeg", which use the library to 867dd7cddfSDavid du Colombierperform conversion between JPEG and some other popular image file formats. 877dd7cddfSDavid du ColombierThe library is intended to be reused in other applications. 887dd7cddfSDavid du Colombier 897dd7cddfSDavid du ColombierIn order to support file conversion and viewing software, we have included 907dd7cddfSDavid du Colombierconsiderable functionality beyond the bare JPEG coding/decoding capability; 917dd7cddfSDavid du Colombierfor example, the color quantization modules are not strictly part of JPEG 927dd7cddfSDavid du Colombierdecoding, but they are essential for output to colormapped file formats or 937dd7cddfSDavid du Colombiercolormapped displays. These extra functions can be compiled out of the 947dd7cddfSDavid du Colombierlibrary if not required for a particular application. We have also included 957dd7cddfSDavid du Colombier"jpegtran", a utility for lossless transcoding between different JPEG 967dd7cddfSDavid du Colombierprocesses, and "rdjpgcom" and "wrjpgcom", two simple applications for 977dd7cddfSDavid du Colombierinserting and extracting textual comments in JFIF files. 987dd7cddfSDavid du Colombier 997dd7cddfSDavid du ColombierThe emphasis in designing this software has been on achieving portability and 1007dd7cddfSDavid du Colombierflexibility, while also making it fast enough to be useful. In particular, 1017dd7cddfSDavid du Colombierthe software is not intended to be read as a tutorial on JPEG. (See the 1027dd7cddfSDavid du ColombierREFERENCES section for introductory material.) Rather, it is intended to 1037dd7cddfSDavid du Colombierbe reliable, portable, industrial-strength code. We do not claim to have 1047dd7cddfSDavid du Colombierachieved that goal in every aspect of the software, but we strive for it. 1057dd7cddfSDavid du Colombier 1067dd7cddfSDavid du ColombierWe welcome the use of this software as a component of commercial products. 1077dd7cddfSDavid du ColombierNo royalty is required, but we do ask for an acknowledgement in product 1087dd7cddfSDavid du Colombierdocumentation, as described under LEGAL ISSUES. 1097dd7cddfSDavid du Colombier 1107dd7cddfSDavid du Colombier 1117dd7cddfSDavid du ColombierLEGAL ISSUES 1127dd7cddfSDavid du Colombier============ 1137dd7cddfSDavid du Colombier 1147dd7cddfSDavid du ColombierIn plain English: 1157dd7cddfSDavid du Colombier 1167dd7cddfSDavid du Colombier1. We don't promise that this software works. (But if you find any bugs, 1177dd7cddfSDavid du Colombier please let us know!) 1187dd7cddfSDavid du Colombier2. You can use this software for whatever you want. You don't have to pay us. 1197dd7cddfSDavid du Colombier3. You may not pretend that you wrote this software. If you use it in a 1207dd7cddfSDavid du Colombier program, you must acknowledge somewhere in your documentation that 1217dd7cddfSDavid du Colombier you've used the IJG code. 1227dd7cddfSDavid du Colombier 1237dd7cddfSDavid du ColombierIn legalese: 1247dd7cddfSDavid du Colombier 1257dd7cddfSDavid du ColombierThe authors make NO WARRANTY or representation, either express or implied, 1267dd7cddfSDavid du Colombierwith respect to this software, its quality, accuracy, merchantability, or 1277dd7cddfSDavid du Colombierfitness for a particular purpose. This software is provided "AS IS", and you, 1287dd7cddfSDavid du Colombierits user, assume the entire risk as to its quality and accuracy. 1297dd7cddfSDavid du Colombier 130*593dc095SDavid du ColombierThis software is copyright (C) 1991-1998, Thomas G. Lane. 1317dd7cddfSDavid du ColombierAll Rights Reserved except as specified below. 1327dd7cddfSDavid du Colombier 1337dd7cddfSDavid du ColombierPermission is hereby granted to use, copy, modify, and distribute this 1347dd7cddfSDavid du Colombiersoftware (or portions thereof) for any purpose, without fee, subject to these 1357dd7cddfSDavid du Colombierconditions: 1367dd7cddfSDavid du Colombier(1) If any part of the source code for this software is distributed, then this 1377dd7cddfSDavid du ColombierREADME file must be included, with this copyright and no-warranty notice 1387dd7cddfSDavid du Colombierunaltered; and any additions, deletions, or changes to the original files 1397dd7cddfSDavid du Colombiermust be clearly indicated in accompanying documentation. 1407dd7cddfSDavid du Colombier(2) If only executable code is distributed, then the accompanying 1417dd7cddfSDavid du Colombierdocumentation must state that "this software is based in part on the work of 1427dd7cddfSDavid du Colombierthe Independent JPEG Group". 1437dd7cddfSDavid du Colombier(3) Permission for use of this software is granted only if the user accepts 1447dd7cddfSDavid du Colombierfull responsibility for any undesirable consequences; the authors accept 1457dd7cddfSDavid du ColombierNO LIABILITY for damages of any kind. 1467dd7cddfSDavid du Colombier 1477dd7cddfSDavid du ColombierThese conditions apply to any software derived from or based on the IJG code, 1487dd7cddfSDavid du Colombiernot just to the unmodified library. If you use our work, you ought to 1497dd7cddfSDavid du Colombieracknowledge us. 1507dd7cddfSDavid du Colombier 1517dd7cddfSDavid du ColombierPermission is NOT granted for the use of any IJG author's name or company name 1527dd7cddfSDavid du Colombierin advertising or publicity relating to this software or products derived from 1537dd7cddfSDavid du Colombierit. This software may be referred to only as "the Independent JPEG Group's 1547dd7cddfSDavid du Colombiersoftware". 1557dd7cddfSDavid du Colombier 1567dd7cddfSDavid du ColombierWe specifically permit and encourage the use of this software as the basis of 1577dd7cddfSDavid du Colombiercommercial products, provided that all warranty or liability claims are 1587dd7cddfSDavid du Colombierassumed by the product vendor. 1597dd7cddfSDavid du Colombier 1607dd7cddfSDavid du Colombier 1617dd7cddfSDavid du Colombieransi2knr.c is included in this distribution by permission of L. Peter Deutsch, 1627dd7cddfSDavid du Colombiersole proprietor of its copyright holder, Aladdin Enterprises of Menlo Park, CA. 1637dd7cddfSDavid du Colombieransi2knr.c is NOT covered by the above copyright and conditions, but instead 1647dd7cddfSDavid du Colombierby the usual distribution terms of the Free Software Foundation; principally, 1657dd7cddfSDavid du Colombierthat you must include source code if you redistribute it. (See the file 1667dd7cddfSDavid du Colombieransi2knr.c for full details.) However, since ansi2knr.c is not needed as part 1677dd7cddfSDavid du Colombierof any program generated from the IJG code, this does not limit you more than 1687dd7cddfSDavid du Colombierthe foregoing paragraphs do. 1697dd7cddfSDavid du Colombier 170*593dc095SDavid du ColombierThe Unix configuration script "configure" was produced with GNU Autoconf. 171*593dc095SDavid du ColombierIt is copyright by the Free Software Foundation but is freely distributable. 172*593dc095SDavid du ColombierThe same holds for its supporting scripts (config.guess, config.sub, 173*593dc095SDavid du Colombierltconfig, ltmain.sh). Another support script, install-sh, is copyright 174*593dc095SDavid du Colombierby M.I.T. but is also freely distributable. 1757dd7cddfSDavid du Colombier 1767dd7cddfSDavid du ColombierIt appears that the arithmetic coding option of the JPEG spec is covered by 1777dd7cddfSDavid du Colombierpatents owned by IBM, AT&T, and Mitsubishi. Hence arithmetic coding cannot 1787dd7cddfSDavid du Colombierlegally be used without obtaining one or more licenses. For this reason, 1797dd7cddfSDavid du Colombiersupport for arithmetic coding has been removed from the free JPEG software. 1807dd7cddfSDavid du Colombier(Since arithmetic coding provides only a marginal gain over the unpatented 1817dd7cddfSDavid du ColombierHuffman mode, it is unlikely that very many implementations will support it.) 1827dd7cddfSDavid du ColombierSo far as we are aware, there are no patent restrictions on the remaining 1837dd7cddfSDavid du Colombiercode. 1847dd7cddfSDavid du Colombier 185*593dc095SDavid du ColombierThe IJG distribution formerly included code to read and write GIF files. 186*593dc095SDavid du ColombierTo avoid entanglement with the Unisys LZW patent, GIF reading support has 187*593dc095SDavid du Colombierbeen removed altogether, and the GIF writer has been simplified to produce 188*593dc095SDavid du Colombier"uncompressed GIFs". This technique does not use the LZW algorithm; the 189*593dc095SDavid du Colombierresulting GIF files are larger than usual, but are readable by all standard 190*593dc095SDavid du ColombierGIF decoders. 1917dd7cddfSDavid du Colombier 1927dd7cddfSDavid du ColombierWe are required to state that 1937dd7cddfSDavid du Colombier "The Graphics Interchange Format(c) is the Copyright property of 1947dd7cddfSDavid du Colombier CompuServe Incorporated. GIF(sm) is a Service Mark property of 1957dd7cddfSDavid du Colombier CompuServe Incorporated." 1967dd7cddfSDavid du Colombier 1977dd7cddfSDavid du Colombier 1987dd7cddfSDavid du ColombierREFERENCES 1997dd7cddfSDavid du Colombier========== 2007dd7cddfSDavid du Colombier 2017dd7cddfSDavid du ColombierWe highly recommend reading one or more of these references before trying to 2027dd7cddfSDavid du Colombierunderstand the innards of the JPEG software. 2037dd7cddfSDavid du Colombier 2047dd7cddfSDavid du ColombierThe best short technical introduction to the JPEG compression algorithm is 2057dd7cddfSDavid du Colombier Wallace, Gregory K. "The JPEG Still Picture Compression Standard", 2067dd7cddfSDavid du Colombier Communications of the ACM, April 1991 (vol. 34 no. 4), pp. 30-44. 2077dd7cddfSDavid du Colombier(Adjacent articles in that issue discuss MPEG motion picture compression, 2087dd7cddfSDavid du Colombierapplications of JPEG, and related topics.) If you don't have the CACM issue 209*593dc095SDavid du Colombierhandy, a PostScript file containing a revised version of Wallace's article is 210*593dc095SDavid du Colombieravailable at ftp://ftp.uu.net/graphics/jpeg/wallace.ps.gz. The file (actually 2117dd7cddfSDavid du Colombiera preprint for an article that appeared in IEEE Trans. Consumer Electronics) 2127dd7cddfSDavid du Colombieromits the sample images that appeared in CACM, but it includes corrections 213*593dc095SDavid du Colombierand some added material. Note: the Wallace article is copyright ACM and IEEE, 214*593dc095SDavid du Colombierand it may not be used for commercial purposes. 2157dd7cddfSDavid du Colombier 2167dd7cddfSDavid du ColombierA somewhat less technical, more leisurely introduction to JPEG can be found in 217*593dc095SDavid du Colombier"The Data Compression Book" by Mark Nelson and Jean-loup Gailly, published by 218*593dc095SDavid du ColombierM&T Books (New York), 2nd ed. 1996, ISBN 1-55851-434-1. This book provides 219*593dc095SDavid du Colombiergood explanations and example C code for a multitude of compression methods 220*593dc095SDavid du Colombierincluding JPEG. It is an excellent source if you are comfortable reading C 221*593dc095SDavid du Colombiercode but don't know much about data compression in general. The book's JPEG 222*593dc095SDavid du Colombiersample code is far from industrial-strength, but when you are ready to look 223*593dc095SDavid du Colombierat a full implementation, you've got one here... 2247dd7cddfSDavid du Colombier 2257dd7cddfSDavid du ColombierThe best full description of JPEG is the textbook "JPEG Still Image Data 2267dd7cddfSDavid du ColombierCompression Standard" by William B. Pennebaker and Joan L. Mitchell, published 2277dd7cddfSDavid du Colombierby Van Nostrand Reinhold, 1993, ISBN 0-442-01272-1. Price US$59.95, 638 pp. 2287dd7cddfSDavid du ColombierThe book includes the complete text of the ISO JPEG standards (DIS 10918-1 2297dd7cddfSDavid du Colombierand draft DIS 10918-2). This is by far the most complete exposition of JPEG 2307dd7cddfSDavid du Colombierin existence, and we highly recommend it. 2317dd7cddfSDavid du Colombier 2327dd7cddfSDavid du ColombierThe JPEG standard itself is not available electronically; you must order a 2337dd7cddfSDavid du Colombierpaper copy through ISO or ITU. (Unless you feel a need to own a certified 2347dd7cddfSDavid du Colombierofficial copy, we recommend buying the Pennebaker and Mitchell book instead; 2357dd7cddfSDavid du Colombierit's much cheaper and includes a great deal of useful explanatory material.) 2367dd7cddfSDavid du ColombierIn the USA, copies of the standard may be ordered from ANSI Sales at (212) 2377dd7cddfSDavid du Colombier642-4900, or from Global Engineering Documents at (800) 854-7179. (ANSI 2387dd7cddfSDavid du Colombierdoesn't take credit card orders, but Global does.) It's not cheap: as of 2397dd7cddfSDavid du Colombier1992, ANSI was charging $95 for Part 1 and $47 for Part 2, plus 7% 2407dd7cddfSDavid du Colombiershipping/handling. The standard is divided into two parts, Part 1 being the 2417dd7cddfSDavid du Colombieractual specification, while Part 2 covers compliance testing methods. Part 1 2427dd7cddfSDavid du Colombieris titled "Digital Compression and Coding of Continuous-tone Still Images, 2437dd7cddfSDavid du ColombierPart 1: Requirements and guidelines" and has document numbers ISO/IEC IS 2447dd7cddfSDavid du Colombier10918-1, ITU-T T.81. Part 2 is titled "Digital Compression and Coding of 2457dd7cddfSDavid du ColombierContinuous-tone Still Images, Part 2: Compliance testing" and has document 2467dd7cddfSDavid du Colombiernumbers ISO/IEC IS 10918-2, ITU-T T.83. 2477dd7cddfSDavid du Colombier 248*593dc095SDavid du ColombierSome extensions to the original JPEG standard are defined in JPEG Part 3, 249*593dc095SDavid du Colombiera newer ISO standard numbered ISO/IEC IS 10918-3 and ITU-T T.84. IJG 250*593dc095SDavid du Colombiercurrently does not support any Part 3 extensions. 2517dd7cddfSDavid du Colombier 2527dd7cddfSDavid du ColombierThe JPEG standard does not specify all details of an interchangeable file 2537dd7cddfSDavid du Colombierformat. For the omitted details we follow the "JFIF" conventions, revision 2547dd7cddfSDavid du Colombier1.02. A copy of the JFIF spec is available from: 2557dd7cddfSDavid du Colombier Literature Department 2567dd7cddfSDavid du Colombier C-Cube Microsystems, Inc. 2577dd7cddfSDavid du Colombier 1778 McCarthy Blvd. 2587dd7cddfSDavid du Colombier Milpitas, CA 95035 2597dd7cddfSDavid du Colombier phone (408) 944-6300, fax (408) 944-6314 260*593dc095SDavid du ColombierA PostScript version of this document is available by FTP at 261*593dc095SDavid du Colombierftp://ftp.uu.net/graphics/jpeg/jfif.ps.gz. There is also a plain text 262*593dc095SDavid du Colombierversion at ftp://ftp.uu.net/graphics/jpeg/jfif.txt.gz, but it is missing 263*593dc095SDavid du Colombierthe figures. 2647dd7cddfSDavid du Colombier 265*593dc095SDavid du ColombierThe TIFF 6.0 file format specification can be obtained by FTP from 266*593dc095SDavid du Colombierftp://ftp.sgi.com/graphics/tiff/TIFF6.ps.gz. The JPEG incorporation scheme 2677dd7cddfSDavid du Colombierfound in the TIFF 6.0 spec of 3-June-92 has a number of serious problems. 2687dd7cddfSDavid du ColombierIJG does not recommend use of the TIFF 6.0 design (TIFF Compression tag 6). 2697dd7cddfSDavid du ColombierInstead, we recommend the JPEG design proposed by TIFF Technical Note #2 270*593dc095SDavid du Colombier(Compression tag 7). Copies of this Note can be obtained from ftp.sgi.com or 271*593dc095SDavid du Colombierfrom ftp://ftp.uu.net/graphics/jpeg/. It is expected that the next revision 272*593dc095SDavid du Colombierof the TIFF spec will replace the 6.0 JPEG design with the Note's design. 2737dd7cddfSDavid du ColombierAlthough IJG's own code does not support TIFF/JPEG, the free libtiff library 2747dd7cddfSDavid du Colombieruses our library to implement TIFF/JPEG per the Note. libtiff is available 275*593dc095SDavid du Colombierfrom ftp://ftp.sgi.com/graphics/tiff/. 2767dd7cddfSDavid du Colombier 2777dd7cddfSDavid du Colombier 2787dd7cddfSDavid du ColombierARCHIVE LOCATIONS 2797dd7cddfSDavid du Colombier================= 2807dd7cddfSDavid du Colombier 2817dd7cddfSDavid du ColombierThe "official" archive site for this software is ftp.uu.net (Internet 2827dd7cddfSDavid du Colombieraddress 192.48.96.9). The most recent released version can always be found 2837dd7cddfSDavid du Colombierthere in directory graphics/jpeg. This particular version will be archived 284*593dc095SDavid du Colombieras ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz. If you don't have 285*593dc095SDavid du Colombierdirect Internet access, UUNET's archives are also available via UUCP; contact 2867dd7cddfSDavid du Colombierhelp@uunet.uu.net for information on retrieving files that way. 2877dd7cddfSDavid du Colombier 2887dd7cddfSDavid du ColombierNumerous Internet sites maintain copies of the UUNET files. However, only 2897dd7cddfSDavid du Colombierftp.uu.net is guaranteed to have the latest official version. 2907dd7cddfSDavid du Colombier 2917dd7cddfSDavid du ColombierYou can also obtain this software in DOS-compatible "zip" archive format from 292*593dc095SDavid du Colombierthe SimTel archives (ftp://ftp.simtel.net/pub/simtelnet/msdos/graphics/), or 293*593dc095SDavid du Colombieron CompuServe in the Graphics Support forum (GO CIS:GRAPHSUP), library 12 294*593dc095SDavid du Colombier"JPEG Tools". Again, these versions may sometimes lag behind the ftp.uu.net 295*593dc095SDavid du Colombierrelease. 2967dd7cddfSDavid du Colombier 2977dd7cddfSDavid du ColombierThe JPEG FAQ (Frequently Asked Questions) article is a useful source of 2987dd7cddfSDavid du Colombiergeneral information about JPEG. It is updated constantly and therefore is 2997dd7cddfSDavid du Colombiernot included in this distribution. The FAQ is posted every two weeks to 3007dd7cddfSDavid du ColombierUsenet newsgroups comp.graphics.misc, news.answers, and other groups. 301*593dc095SDavid du ColombierIt is available on the World Wide Web at http://www.faqs.org/faqs/jpeg-faq/ 302*593dc095SDavid du Colombierand other news.answers archive sites, including the official news.answers 303*593dc095SDavid du Colombierarchive at rtfm.mit.edu: ftp://rtfm.mit.edu/pub/usenet/news.answers/jpeg-faq/. 304*593dc095SDavid du ColombierIf you don't have Web or FTP access, send e-mail to mail-server@rtfm.mit.edu 3057dd7cddfSDavid du Colombierwith body 3067dd7cddfSDavid du Colombier send usenet/news.answers/jpeg-faq/part1 3077dd7cddfSDavid du Colombier send usenet/news.answers/jpeg-faq/part2 3087dd7cddfSDavid du Colombier 3097dd7cddfSDavid du Colombier 3107dd7cddfSDavid du ColombierRELATED SOFTWARE 3117dd7cddfSDavid du Colombier================ 3127dd7cddfSDavid du Colombier 3137dd7cddfSDavid du ColombierNumerous viewing and image manipulation programs now support JPEG. (Quite a 3147dd7cddfSDavid du Colombierfew of them use this library to do so.) The JPEG FAQ described above lists 3157dd7cddfSDavid du Colombiersome of the more popular free and shareware viewers, and tells where to 3167dd7cddfSDavid du Colombierobtain them on Internet. 3177dd7cddfSDavid du Colombier 3187dd7cddfSDavid du ColombierIf you are on a Unix machine, we highly recommend Jef Poskanzer's free 319*593dc095SDavid du ColombierPBMPLUS software, which provides many useful operations on PPM-format image 320*593dc095SDavid du Colombierfiles. In particular, it can convert PPM images to and from a wide range of 321*593dc095SDavid du Colombierother formats, thus making cjpeg/djpeg considerably more useful. The latest 322*593dc095SDavid du Colombierversion is distributed by the NetPBM group, and is available from numerous 323*593dc095SDavid du Colombiersites, notably ftp://wuarchive.wustl.edu/graphics/graphics/packages/NetPBM/. 324*593dc095SDavid du ColombierUnfortunately PBMPLUS/NETPBM is not nearly as portable as the IJG software is; 325*593dc095SDavid du Colombieryou are likely to have difficulty making it work on any non-Unix machine. 3267dd7cddfSDavid du Colombier 3277dd7cddfSDavid du ColombierA different free JPEG implementation, written by the PVRG group at Stanford, 328*593dc095SDavid du Colombieris available from ftp://havefun.stanford.edu/pub/jpeg/. This program 3297dd7cddfSDavid du Colombieris designed for research and experimentation rather than production use; 3307dd7cddfSDavid du Colombierit is slower, harder to use, and less portable than the IJG code, but it 3317dd7cddfSDavid du Colombieris easier to read and modify. Also, the PVRG code supports lossless JPEG, 332*593dc095SDavid du Colombierwhich we do not. (On the other hand, it doesn't do progressive JPEG.) 3337dd7cddfSDavid du Colombier 3347dd7cddfSDavid du Colombier 3357dd7cddfSDavid du ColombierFILE FORMAT WARS 3367dd7cddfSDavid du Colombier================ 3377dd7cddfSDavid du Colombier 3387dd7cddfSDavid du ColombierSome JPEG programs produce files that are not compatible with our library. 3397dd7cddfSDavid du ColombierThe root of the problem is that the ISO JPEG committee failed to specify a 3407dd7cddfSDavid du Colombierconcrete file format. Some vendors "filled in the blanks" on their own, 3417dd7cddfSDavid du Colombiercreating proprietary formats that no one else could read. (For example, none 3427dd7cddfSDavid du Colombierof the early commercial JPEG implementations for the Macintosh were able to 3437dd7cddfSDavid du Colombierexchange compressed files.) 3447dd7cddfSDavid du Colombier 3457dd7cddfSDavid du ColombierThe file format we have adopted is called JFIF (see REFERENCES). This format 3467dd7cddfSDavid du Colombierhas been agreed to by a number of major commercial JPEG vendors, and it has 3477dd7cddfSDavid du Colombierbecome the de facto standard. JFIF is a minimal or "low end" representation. 3487dd7cddfSDavid du ColombierWe recommend the use of TIFF/JPEG (TIFF revision 6.0 as modified by TIFF 3497dd7cddfSDavid du ColombierTechnical Note #2) for "high end" applications that need to record a lot of 3507dd7cddfSDavid du Colombieradditional data about an image. TIFF/JPEG is fairly new and not yet widely 3517dd7cddfSDavid du Colombiersupported, unfortunately. 3527dd7cddfSDavid du Colombier 3537dd7cddfSDavid du ColombierThe upcoming JPEG Part 3 standard defines a file format called SPIFF. 3547dd7cddfSDavid du ColombierSPIFF is interoperable with JFIF, in the sense that most JFIF decoders should 3557dd7cddfSDavid du Colombierbe able to read the most common variant of SPIFF. SPIFF has some technical 3567dd7cddfSDavid du Colombieradvantages over JFIF, but its major claim to fame is simply that it is an 3577dd7cddfSDavid du Colombierofficial standard rather than an informal one. At this point it is unclear 3587dd7cddfSDavid du Colombierwhether SPIFF will supersede JFIF or whether JFIF will remain the de-facto 3597dd7cddfSDavid du Colombierstandard. IJG intends to support SPIFF once the standard is frozen, but we 3607dd7cddfSDavid du Colombierhave not decided whether it should become our default output format or not. 3617dd7cddfSDavid du Colombier(In any case, our decoder will remain capable of reading JFIF indefinitely.) 3627dd7cddfSDavid du Colombier 3637dd7cddfSDavid du ColombierVarious proprietary file formats incorporating JPEG compression also exist. 3647dd7cddfSDavid du ColombierWe have little or no sympathy for the existence of these formats. Indeed, 3657dd7cddfSDavid du Colombierone of the original reasons for developing this free software was to help 3667dd7cddfSDavid du Colombierforce convergence on common, open format standards for JPEG files. Don't 3677dd7cddfSDavid du Colombieruse a proprietary file format! 3687dd7cddfSDavid du Colombier 3697dd7cddfSDavid du Colombier 3707dd7cddfSDavid du ColombierTO DO 3717dd7cddfSDavid du Colombier===== 3727dd7cddfSDavid du Colombier 373*593dc095SDavid du ColombierThe major thrust for v7 will probably be improvement of visual quality. 374*593dc095SDavid du ColombierThe current method for scaling the quantization tables is known not to be 375*593dc095SDavid du Colombiervery good at low Q values. We also intend to investigate block boundary 376*593dc095SDavid du Colombiersmoothing, "poor man's variable quantization", and other means of improving 377*593dc095SDavid du Colombierquality-vs-file-size performance without sacrificing compatibility. 378*593dc095SDavid du Colombier 3797dd7cddfSDavid du ColombierIn future versions, we are considering supporting some of the upcoming JPEG 3807dd7cddfSDavid du ColombierPart 3 extensions --- principally, variable quantization and the SPIFF file 3817dd7cddfSDavid du Colombierformat. 3827dd7cddfSDavid du Colombier 383*593dc095SDavid du ColombierAs always, speeding things up is of great interest. 3847dd7cddfSDavid du Colombier 3857dd7cddfSDavid du ColombierPlease send bug reports, offers of help, etc. to jpeg-info@uunet.uu.net. 386