← Graphics File Formats Second Edition 1996

Graphics File Formats Second Edition 1996

From the originals

13 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

Image 1

Graphics File Formats

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.

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
PDF page 1

GRAPHICS FILE FORMATS

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.

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
PDF page 2

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.

PDF page 3

ENCYCLOPEDIA OF GRAPHICS FILE FORMATS SECOND EDITION

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

Languages
English
PDF page 4

Encyclopedia of Graphics Fde Formats, Second Edition

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
PDF page 5

TABLE OF CONTENTS

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
PDF page 6

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
PDF page 7

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
PDF page 8

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
PDF page 9

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
PDF page 10

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
PDF page 11

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