# Graphics File Formats Second Edition 1996 — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-93b011582ec44d4a758f5873bf1b31123a14ea44c884737b3984d503c208c97d)

Graphics File Formats

Transcribed text:

ENCYCLOPEDIA OF

COMPLETE BOOK IN PRINT & ON CD-ROM

GRAPHICS FILE FORMATS

SECOND EDITION

THE COMPLETE REFERENCE ON CD-ROM WITH LINKS TO INTERNET RESOURCES

FOR PC, MACINTOSH, AND UNIX PLATFORMS

JAMES D. MURRAY AND WILLIAM vanRYPER

O'REILLY & ASSOCIATES, INC.

Image description: Book cover with a yellow and black framed layout, a large black circle containing the title, a red diagonal corner banner, and rows of colored faceted gem illustrations.

Reading notes: The word after ENCYCLOPEDIA OF is hidden by the red corner banner and may be cut off in the image. The diagonal banner text reads COMPLETE BOOK IN PRINT & ON CD-ROM and is partly cropped at the top edge. Gem illustrations are partly cropped at the circle edge at the bottom and are not text.

Printed dates: SECOND EDITION

Languages: English

[Original Image 1](https://www.vintageapple.net/files/96175b3fba07ef8eb86958795e3605bb816cb7d8c9618c5fc894609fe9121cd2/30bdd5ec8469d4df556cae5e.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-9dccdab68da8da578f2dd309d7b061a1f79c545f665d416bcfc9382b11d0a34b)

GRAPHICS FILE FORMATS

Transcribed text:

ENCYCLOPEDIA OF

COMPLETE BOOK IN PRINT & ON CD-ROM

GRAPHICS
FILE FORMATS
SECOND EDITION

THE COMPLETE REFERENCE ON CD-ROM WITH LINKS TO INTERNET RESOURCES

FOR PC, MACINTOSH, AND UNIX PLATFORMS

JAMES D. MURRAY AND WILLIAM vanRYPER

O'REILLY & ASSOCIATES, INC.

Image description: A book cover with a black background, yellow panel, and a large circular black area showing colorful engraved gemstone illustrations, with a red diagonal corner banner reading COMPLETE BOOK IN PRINT & ON CD-ROM.

Reading notes: Reading order of the corner banner and top title line is approximate. Small text in the red corner banner is set diagonally and may be read in an approximate order.

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/e98091b545dba55cde35c9014767332ae8fb7428c451006aac1bb08aba38b891/Graphics_File_Formats_Second_Edition_1996.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-6d67777f3ed9a1c3cd20a2b6f66bc9c4fecef0b936811b658261b7591c21e264)

Image description: The image is a plain, entirely blank white page with no artwork, layout, or markings visible.

Reading notes: The image contains no visible text, so all printed fields are empty by design.

[Original PDF page 2](https://www.vintageapple.net/files/e98091b545dba55cde35c9014767332ae8fb7428c451006aac1bb08aba38b891/Graphics_File_Formats_Second_Edition_1996.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-949cbfbac12d6e9ef0e85dddf1ea98a9cdaee6758639ea641383ad4ad77381cd)

ENCYCLOPEDIA OF GRAPHICS FILE FORMATS SECOND EDITION

Transcribed text:

ENCYCLOPEDIA   OF
GRAPHICS
FILE   FORMATS
SECOND   EDITION
James D. Murray and William vanRyper
O'REILLY   &   AssociATES,   INc.
BONN   •   CAMBRIDGE   •   PARIS   •   SEBASTOPOL   •   TOKYO

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/e98091b545dba55cde35c9014767332ae8fb7428c451006aac1bb08aba38b891/Graphics_File_Formats_Second_Edition_1996.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-2d949a5e207b477e5b0ef6c942647d50ddc2f8a58f96314f4cc0b242cf4d6fc0)

Encyclopedia of Graphics Fde Formats, Second Edition

Transcribed text:

Encyclopedia of Graphics   Fde   Formats, Second Edition
by   James D. Murray and William vanRyper
Copyright © 1996, 1994   O'Reilly   &   Associates, Inc. All rights reserved.
Printed in the   United   States   of America.
Published by   O'Reilly   &   Associates, Inc.,   103   Morris   Street,   Suite   A,   Sebastop<•l,   CA 95472
Editor:   Deborah Russell
Production Editor:   David Futato
Software   Development:   Norman Walsh   &   Ken DeCanio
Printing   History:
July 1994:
April1996:
First Edition
Second   Edition
Many of the designations used by manufacturers and sellers to distinguish   thdr   products are
claimed as trademarks. Where those designations appear in this book, and   O'Reilly   &   Associates,
Inc., was aware of a trademark claim, the designations have been printed in c   :tps   or initial caps.
Specific   copyright notices and restrictions for specification documents and pr{lgrams included on
the   CD-ROM   accompanying this book are included on that   CD-ROM.
All of the specification documents and programs described in this book and provided by vendors
for inclusion on the   CD-ROM   are subject to change without notice by those   vc!ndors.
O'Reilly   &   Associates, Inc., and the authors have used their best efforts in   pr•!paring   this book,
the   CD-ROM   accompanying this book, and the'programs and data contained therein. However,
the authors and publisher make no warranties of any kind, expressed or implied, with regard to
the documentation or programs or data contained in this book or the   CD-ROM.   O'Reilly   &
Associates, Inc., and the authors specifically disclaim, without any limitation, any implied
warranties of merchantability and fitness for a particular purpose with respect co the   CD-ROM,   the
programs therein and/   or techniques described in the book. In no event shal the authors or
publishers be responsible or liable for any loss of profit or any other commercial damages,
including but not limited to special, incidental, consequential or any other damages in connection
with or arising out of furnishing, performance, or use of this book or the pro   5fams   or data.
This book is printed on acid-free paper with 85% recycled content, 15%   post-consumer   waste.
O'Reilly   &   Associates is committed to using paper with the highest recycled content available
consistent with high quality.
ISBN:   1-56592-161-5   [9/96]

Reading notes: Headline 'Fde' may be an OCR error for 'File' 'April1996' is missing a space in the source Some words are split by spacing artifacts such as 'Sebastop<•l'

Printed dates: July 1994 · April1996 · 1996 · 1994 · 9/96

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/e98091b545dba55cde35c9014767332ae8fb7428c451006aac1bb08aba38b891/Graphics_File_Formats_Second_Edition_1996.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-f992fc6170ab82d0880501979e96813fd7c73a53090673bc1f0f333f24c3e731)

TABLE OF CONTENTS

Transcribed text:

TABLE   OF   CONTENTS
Preface   ...............................................................................................................   xu
PART   ONE
Overview
1.   Introduction   3
The Basics ...................................................................................................... 4
Graphics Files ................................................................................................ 5
Graphics Data ................................................................................................   7
Types of Graphics File Formats .................................................................. 12
Elements of a Graphics File ........................................................................   20
Converting Formats ..................................................................................... 22
Compressing Data ....................................................................................... 22
Format   Summary   ......................................................................................... 24
2.   Computer Graphics Basics   27
Pixels and Coordinates ............................................................................... 27
Pixel Data and Palettes ............................................................................... 31
Color ............................................................................................................ 45
Overlays and Transparency ......................................................................... 51
For Further Information ............................................................................. 52
3.   Bitmap Files   55
How Bitmap Files Are   Organized   .............................................................. 55
Header ......................................................................................................... 57
Examples of Bitmap Headers ..................................................................... 62
Bitmap Data ................................................................................................. 65
Footer ........................................................................................................... 72
TABLE   OF   CONTENTS   V

Reading notes: Page number 'xu' in the Preface entry may be an OCR error for 'xi'.

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/e98091b545dba55cde35c9014767332ae8fb7428c451006aac1bb08aba38b891/Graphics_File_Formats_Second_Edition_1996.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-d375ac3cea711c5a3063c4554f43e8b4838c926b71326de6ad81efd04fe71d3c)

Transcribed text:

Other   Bitmap File Data Structures ............................................................ 73
Other   Bitmap File Features ........................................................................ 73
Pros and Cons of Bitmap File Formats ...................................................... 74
4.   Vector Files   75
Vector Versus Bitmap Files ......................................................................... 75
Wllat   Is Vector Data? ................................................................................... 75
Vector Files and Device Independence .....................................................   7ti
Sources   of Vector Format Files ................................................................... 77
How Vector Files Are   Organized   ................................................................ 77
Vector File   Size   Issues ................................................................................. 82
Scaling   Vector Files ..................................................................................... 83
Text in Vector Files ...................................................................................... 83
Pros and Cons of   Vector Files ..................................................................... 84
5.   Metafiles   87
Platform Independence? ............................................................................ 88
How Metafiles Are   Organized   .................................................................... 88
Pros and Cons of Metafiles ......................................................................... 88
6.   Platform Dependencies   91
Byte   Order   ................................................................................................... 91
File   Size   and   Memory   Limitations ............................................................. 93
Floating-Point Formats ............................................................................... 94
Bit   Order   ...................................................................................................... 94
Filenames ..................................................................................................... 97
For Further Information ............................................................................. 99
7.   Format Conversion   101
Is It Really Possible? .................................................................................   101
Don't Do It   IfYou   Don't Need to .........................................................   102
... But If   You   Do .......................................... • ............................................   102
Other   Format Conversion Considerations .............................................   106
8.   Working   With   Graphics Files   107
Reading Graphics Data ............................................................................   107
Writing Graphics Data ............................................................................. 117
Test Files ....................................................................................................   120
Corruption of Graphics Files ................................................................... 121
Vi   TABLE   OF   CONTENTS

Reading notes: OCR garbling in 'Wllat Is Vector Data?' and '7ti' and '7ti' page-number fragments Table-of-contents text with dot leaders and page numbers; reading order is a list, not running prose

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/e98091b545dba55cde35c9014767332ae8fb7428c451006aac1bb08aba38b891/Graphics_File_Formats_Second_Edition_1996.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-8d42b79bd823ece5c0e150f1336e4da72ef6dc95334ad5e3c577534a7912616b)

Transcribed text:

Encryption of Graphics Files .................................................................... 127
Viruses in Graphics Files ........................................................................... 137
Designing   Your   Own   Format .................................................................... 139
Writing a File Format Specification ......................................................... 141
Trademarks,   Patents,   and Copyrights ...................................................... 144
9.   Data Compression   153
Data Compression Terminology .............................................................. 155
Pixel   Packing ............................................................................................. 158
Run-Length Encoding (RLE}   ...................................................................   160
Lempel-Ziv-Welch   (LZW)   Compression ...................................................   170
CCIIT (Huffinan) Encoding .................................................................... 179
JPEG   Compression ..................................................................................... 191
JBIG Compression .....................................................................................   205
ART   Compression ......................................................................................   210
Fractal Image Compression .............................   :........................................ 212
For Further Information About Data Compression ............................... 217
10.   Multimedia   219
Beyond Traditional Graphics File Formats .............................................. 219
Multimedia File Formats ...........................................................................   220
Types of Data ............................................................................................. 221
For Further Information ...........................................................................   230
PART   TWO
Graphics File   Formats
Adobe Illustrator ....................................................................................... 235
Adobe Photoshop ......................................................................................   250
Atari   ST   Graphics Formats .... : .................................................................. 261
AutoCAD DXF .....................................................................................   .- ..... 276
Autodesk 3D   Studio   .................................................................................. 282
BDF ............................................................................................................   310
BRI.rCAD   ................................................................................................... 315
BUFR   ··································································!·······································   318
CALS   Raster ............................................................................................... 321
CGM ...........................................................................................................   330
CMU   Formats ............................................................................................ 336
DKB ............................................................................................................ 342
Dore Raster File Format ........................................................................... 344
·   TABLE   OF   CONTENTS   vii

Reading notes: Source is a table of contents with OCR-like damage (e.g., 'Huffinan', 'CCIIT', 'BRI.rCAD', 'BUFR', 'DKB' and stray punctuation). Primary heading not present; no single headline identified.

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/e98091b545dba55cde35c9014767332ae8fb7428c451006aac1bb08aba38b891/Graphics_File_Formats_Second_Edition_1996.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-c09ca9736dadfe79822b3291e4c2a66fefecc066c2b1cf61f40109848fc16593)

Transcribed text:

DPX ...........................................................................................................   350
Dr. Halo .................................................................................................... 368
DVM Movie ............................................................................................... 372
Encapsulated PostScript .......................................................................... 376
FaceSaver .................................................................................................. 386
FAX Formats .............................................................................................. 389
FITS ............................................................................................................ 392
FLI ...................................................................................... · ........................   401
GEM Raster ................................................................................................ 417
GEM   'VDI   ................................................................ ..........   : ...   .....................   42~
GIF ............................................................................................................. 429
GRASP ........................................................................................................ 451
GRIB .......................................................................................................... 457
Harvard Graphics ......................................................................................   460
Hierarchical Data Format ......................................................................... 462
IFF .............................................................................................................. 465
IGES ........................................................................................................... 484
Inset PIX .................................................................................................... 487
Intel DVI .................................................................................................... 497
JPEG File Interchange Format .................................................................   510
Kodak Photo CD ....................................................................................... 516
Kodak   YCC   .................................................................................................   520
Lotus DIF ................................................................................................... 522
Lotus PIC ................................................................................................... 529
Lumena Paint ............................................................................................ 532
Macintosh Paint ......................................................................................... 537
Macintosh PICT ........................................................................................ 544
Microsoft Paint .......................................................................................... 549.
Microsoft   RIFF ...........................................................................................   554
Microsoft RTF ............................................................................................ 564
Microsoft   S'Yl..K   .......................................................................................... 569
Microsoft Windows Bitmap ....................................................................... 572
Microsoft Windows Metafile ..................................................................... 592
MIFF ......................................................................................................   ~   .... 599
MPEG .........................................................................................................   604
MTV ...........................................................................................................   613
NAPLPS ..................................................................................................... 617
NFF .............................................................................................................   620
OFF   ............................................................................................................   627
OS/2   Bitmap .............................................................................................   630
P3D ...........   : ................................................................................................. 651
PBM, PGM, PNM, and PPM ..................................................................... 658
Viii   TABLE   OF   CONTENTS

Reading notes: Source is a table of contents listing file format names with page numbers; no headline or advertised content. Several OCR-damaged characters in entries such as GEM VDI, Microsoft Windows Bitmap page 572, and the Viii header.

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/e98091b545dba55cde35c9014767332ae8fb7428c451006aac1bb08aba38b891/Graphics_File_Formats_Second_Edition_1996.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-4102cf24db09d5dd06e441ea912f87672f1a4cb7b7f983d8ece959c1a2d998c4)

Transcribed text:

PCX   ............................................................................................................ 662
PDS   ............................................................................................................. 678
Pic   tor   PC   Paint   .......................................................................................... 683
Pixar   RIB .................................................................................................... 695
Plot-10   ........................................................................................................ 698
PNG   ............................................................................................................   700
POV   ............................................................................................................   720
Presentation   Manager Metafile ................................................................ 725
PRT   .............................................................................................................   730
QRT ............................................................................................................ 736
QuickTime .................. · ............................................................................... 747
Radiance ....................................................................................................   760
Rayshade .................................................................................................... 764
RIX ............................................................................................................. 772
RTrace ........................................................................................................ 776
S.AF'   ............................................................................................................. 786
SenseS NFF ................................................................................................ 796
SGI Image File Format ..............................................................................   801
SGI lnven   tor ..............................................................................................   806
SGI   "YA.ODL   ................................................................................................ 812
SGO   ............................................................................................................ 818
SPIFF .......................................................................................................... 822
Sun Icon ..................................................................................................... 838
Sun Raster .................................................................................................. 841
TDDD ......................................................................................................... 846
TGA ............................................................................................................   860
TIFF ............................................................................................................   880
TTDDD ......................................................................................................   909
uRay ............................................................................................................ 914
Utah   RLE ................................................................................................... 917
VICAR2 ...................................................................................................... 921
VIFF ............................................................................................................   925
VIS-5D ........................................................................................................ 935
Vivid and Bob ............................................................................................ 943
Wavefront   OBJ   ..............................................   ~   ............................................ 946
Wavefront   RIA   .......................................................................................... 953
WordPerfect Graphics Metafile ................................................................ 964
XBM ........................................................................................................... 983
XPM ........................................................................................................... 987
XWD ...........................................................................................................   992
ZBR ............................................................................................................   998
TABLE   OF   CONTENTS   ix

Reading notes: Source is a table of contents listing file format names and page numbers, not advertising copy. Some characters are damaged, e.g. 'S.AF' and 'SenseS NFF' and 'TTDDD'. Several entries contain OCR noise such as stray symbols around 'Pixar RIB' and 'Wavefront OBJ'.

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/e98091b545dba55cde35c9014767332ae8fb7428c451006aac1bb08aba38b891/Graphics_File_Formats_Second_Edition_1996.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-be3cba6b2eee58579829bc9decff21268ad8030add398cbaf6e5ecad5140ba6b)

Transcribed text:

PART   THREE
Appendices
Appendix   A:   Graphics Files and Resources on the Internet   1005
Encoding of Graphics Files .....................................................................   1005
Email ........................................................................................................   1010
USENET   News ..........................................................................................   1011
Mailing Lists ............................................................................................   1017
FTP   Archives ............................................................................................   1018
Archie .......................................................................................................   1019
The World Wide Web (WWW) ................................................................   1020
Internet Graphics Resources ..................................................................   1029
For Further   Information   .........................................................................   1039
Appendix B: Graphics Files and Resources on the
Commercial Services   1041
CompuServe ............................................................................................   1041
America   Online   .......................................................................................   1043
Bulletin Board   Systems   ...........................................................................   1044
Appendix C: Installation and Setup   1047
Using the   CD-ROM   ..................................................................................   1048
Installing GFF ........................................................   ~   ..................................   1050
Removing GFF .........................................................................................   1051
Which Browsers Can I   Use?   ....................................................................   1052
Accessing Software on the   CD-ROM   .......................................................   1053
How Does GFF Work? ..............................................................................   1053
Customizing GFF .....................................................................................   1054
Glossary   .........................................................................................................   1061
Index .............................................................................................................   1099
X   TABLE OF CONTENTS

Reading notes: Source appears to be a table of contents with dot leaders; some page numbers and entries may be partially garbled (e.g., 'Installing GFF ........ ~ ....').

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/e98091b545dba55cde35c9014767332ae8fb7428c451006aac1bb08aba38b891/Graphics_File_Formats_Second_Edition_1996.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/1#scan-79000496590efb04b640c6ca653613756f58322bba7fd84539d1ecb382e5fa74)

Transcribed text:

o   LIST   OF   FIGURES
1-1 The graphics production pipeline ................................................................. 6
1-2 Vector data ....................................................................................................... 8
1-3 Bitmap data .......................................................   .,.   ..............................   ~   .............. 9
1-4 Object data ..................................................................................................... 11
2-1   Physical   and logical pixels .:   ........................................................................... 28
2-2 Displaying data with few colors on a device with many colors .................... 31
2-3 Displaying data with many colors on a device with few colors ..   :................. 31
2-4   Using   a palette to   specifY   a color .................................................................. 33
2-5 Types of palettes .............................................................................................   40
3-1 Organization of pixel data into scan lines (24-bit image)   .......................... 68
3-2 Organization of pixel data into color planes ......................................... _.   ..... 69
3-3 Examples of bitmap data organization (contiguous scan ..............................   .
lines, strips, and tiles) ....................................................................................   70
4-1 Gradient fill .................................................................................................... 81
9-1   Pixel   packing .................................................................   ~······························   159
9-2 Run-length encoding variants ..................................................................... 162
9-3 Basic run-length encoding flow .................................................................. 165
9-4 Bit-, byte-, and pixel-level RLE schemes ...................................................... 167
9-5 RLE scheme with three bytes ....................................................................... 168
9-6 RLE scheme with 1- and 2-byte vertical replication packets ...................... 169
9-7 CCIIT Group 3 encoding ............................................................................ 183
9-8 CCITT Group 3 encoding   (EOL   code) ...................................................... 184
9-9 CCIIT Group 3 encoding (RTC code) ....................................................... 185
9-10   Group 3 CCIIT encoding (TIFF Compression Type 2) ........................... 186
9-11 ]PEG compression and decompression .................................................... 195
DPX-1   DPX format ............................................................................................. 352
DPX-2   Packed   bits ............................................................................................. 365
TABLE   OF   CONTENTS   Xi

Reading notes: Source is a table of contents / list of figures, not an advertisement; no headline or products are present. Some OCR artifacts present (e.g., 'CCIIT', 'SPECIFY' split, stray punctuation) in figure titles.

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/e98091b545dba55cde35c9014767332ae8fb7428c451006aac1bb08aba38b891/Graphics_File_Formats_Second_Edition_1996.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-graphics-file-formats-second-edition-1996-bdf8d7/2.md)
