Image file format: Difference between revisions
No edit summary |
m Reverted 3 edits by 122.180.9.42 identified as vandalism to last revision by 87.162.45.81. (TW) |
||
Line 1: | Line 1: | ||
{{about|digital image formats used to store photographic and other images|disk-image file formats|Disk image|digital file formats in general|File format}} |
|||
Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli...Vipin Kohli... |
|||
'''Image file formats''' are standardized means of organizing and storing [[digital image]]s. Image [[Computer file|files]] are composed of either [[pixel]] or [[vector graphics|vector]] ([[geometric]]) data that are [[Raster graphics|rasterized]] to pixels when displayed (with few exceptions) in a [[Vector graphics#Overview|vector graphic display]]. The pixels that constitute an image are ordered as a grid (columns and rows); each pixel consists of numbers representing magnitudes of brightness and color. |
|||
== Image file sizes == |
|||
'''Image file size'''—expressed as the number of bytes—increases with the number of pixels composing an image, and the colour depth of the pixels. The greater the number of rows and columns, the greater the [[image resolution]], and the larger the file. Also, each pixel of an image increases in size when its colour depth increases—an 8-bit pixel (1 byte) stores 256 colors, a 24-bit pixel (3 bytes) stores 16 million colors, the latter known as [[truecolor]]. |
|||
Image compression uses [[algorithm]]s to decrease the size of a file. High resolution cameras produce large image files, ranging from hundreds of kilobytes to megabytes, per the camera's resolution and the image-storage format capacity. High resolution [[digital camera]]s record 12 megapixel (1MP = 1,000,000 pixels / 1 million) images, or more, in truecolor. For example, an image recorded by a 12 MP camera; since each pixel uses 3 bytes to record truecolor, the uncompressed image would occupy 36,000,000 bytes of memory—a great amount of digital storage for one image, given that cameras must record and store many images to be practical. Faced with large file sizes, both within the camera and a storage disc, image file formats were developed to store such large images. An overview of the [[#Major graphic file formats|major graphic file formats]] follows below. |
|||
== Image file compression == |
|||
There are two types of '''image file compression''' algorithms: [[Lossless data compression|lossless]] and [[Lossy compression|lossy]]. |
|||
'''Lossless compression''' algorithms reduce file size without losing image quality, though they are not compressed into as small a file as a lossy compression file. When image quality is valued above file size, lossless algorithms are typically chosen. |
|||
'''Lossy compression''' algorithms take advantage of the inherent limitations of the human eye and discard invisible information. Most lossy compression algorithms allow for variable quality levels (compression) and as these levels are increased, file size is reduced. At the highest compression levels, image deterioration becomes noticeable as "compression artifacting". |
|||
The images below demonstrate the noticeable artifacting of lossy compression algorithms; select the thumbnail image to view the full size version.<ref>NOTE: These two images are illustrative only, both were converted from a lossless, compressed RAW image in Adobe Photoshop CS2. The lossy image was repeatedly opened and resaved using a low JPEG quality setting to increase visual artifacting and then exported as a PNG, while the "lossless" image was saved once as a PNG to minimize visual artifacting.</ref> |
|||
== Major graphic file formats == |
|||
Including proprietary types, there are hundreds of image file types.<ref>[http://www.fileinfo.com/filetypes/image Image File Types]</ref> The PNG, JPEG, and GIF formats are most often used to display images on the Internet. These graphic formats are listed and briefly described below, separated into the two main families of graphics: raster and vector. |
|||
In addition to straight image formats, '''[[Metafile]]''' formats are portable formats which can include both raster and vector information. Examples are application-independent formats such as [[Windows_Metafile|WMF]] and [[Enhanced_Metafile|EMF]]. The metafile format is an intermediate format. Most Windows applications open metafiles and then save them in their own native format.<ref>[http://msdn.microsoft.com/en-us/library/cc215212.aspx MSDN: Windows Metafile Format Specification]</ref><ref>[http://msdn.microsoft.com/en-us/library/cc204166.aspx MSDN: Enhanced Metafile Format Specification]</ref> '''[[Page description language]]''' refers to formats used to describe the layout of a printed page containing text, objects and images. Examples are [[PostScript]], [[PDF]] and [[Printer_Command_Language|PCL]]. |
|||
=== Raster formats === |
|||
These formats store images as [[bitmap]]s (also known as pixmaps). For a description of the technology aside from the format, see [[Raster graphics]]. |
|||
==== JPEG/JFIF ==== |
|||
[[JPEG]] (Joint Photographic Experts Group) is a compression method; JPEG-compressed images are usually stored in the '''[[JFIF]]''' (JPEG File Interchange Format) file format. JPEG compression is (in most cases) [[lossy compression]]. The JPEG/JFIF [[filename extension]] in [[DOS]] is '''JPG''' (other [[operating system]]s may use '''JPEG'''). Nearly every digital camera can save images in the JPEG/JFIF format, which supports 8 bits per color (red, green, blue) for a 24-bit total, producing relatively small files. When not too great, the compression does not noticeably detract from the image's quality, but JPEG files suffer generational degradation when repeatedly edited and saved. The JPEG/JFIF format also is used as the image compression algorithm in many [[Adobe PDF]] files. |
|||
====Exif==== |
|||
'''The Exif ([[Exchangeable image file format]])''' format is a file standard similar to the JFIF format with TIFF extensions; it is incorporated in the JPEG-writing software used in most cameras. Its purpose is to record and to standardize the exchange of images with [[image metadata]] between digital cameras and editing and viewing software. The metadata are recorded for individual images and include such things as camera settings, time and date, shutter speed, exposure, image size, compression, name of camera, color information, etc. When images are viewed or edited by image editing software, all of this image information can be displayed. |
|||
==== TIFF ==== |
|||
The '''TIFF ([[Tagged Image File Format]])''' format is a flexible format that normally saves 8 bits or 16 bits per color (red, green, blue) for 24-bit and 48-bit totals, respectively, usually using either the '''TIFF''' or '''TIF''' filename extension. TIFF's flexibility is both blessing and curse, because no single reader reads every type of TIFF file. TIFFs are lossy and lossless; some offer relatively good lossless compression for [[bi-level image|bi-level (black&white) images]]. Some digital cameras can save in TIFF format, using the [[LZW]] compression algorithm for lossless storage. TIFF image format is not widely supported by web browsers. TIFF remains widely accepted as a photograph file standard in the printing business. TIFF can handle device-specific color spaces, such as the [[CMYK]] defined by a particular set of printing press inks. [[Optical_character_recognition|OCR]] (Optical Character Recognition) software packages commonly generate some (often [[Monochrome|monochromatic]]) form of TIFF image for scanned text pages. |
|||
==== RAW ==== |
|||
'''RAW''' refers to a family of [[raw image format]]s that are options available on some digital cameras. These formats usually use a lossless or nearly-lossless compression, and produce file sizes much smaller than the TIFF formats of full-size processed images from the same cameras. Although there is a standard raw image format, (ISO 12234-2, [[Tag Image File Format / Electronic Photography|TIFF/EP]]), the raw formats used by most cameras are not standardized or documented, and differ among camera manufacturers. Many graphic programs and image editors may not accept some or all of them, and some older ones have been effectively orphaned already. |
|||
Adobe's [[Digital Negative (file format)|Digital Negative (DNG)]] specification is an attempt at standardizing a raw image format to be used by cameras, or for archival storage of image data converted from undocumented raw image formats, and [[Digital Negative (file format)#Summary_of_products_that_support_DNG_in_some_way|is used by several niche and minority camera manufacturers]] including [[Pentax]], [[Leica Camera|Leica]], and [[Samsung Group|Samsung]]. The raw image formats of more than 230 camera models, including those from manufacturers with the largest market shares such as [[Canon (company)|Canon]], [[Nikon]], [[Sony]], and [[Olympus Corporation|Olympus]], can be [[Digital Negative (file format)#DNG_conversion|converted to DNG]].<ref name="DNGmain">Adobe: [http://www.adobe.com/products/dng/ Digital Negative (DNG) - The public, archival format for digital camera raw data]</ref> DNG was based on ISO 12234-2, TIFF/EP, and [[International Organization for Standardization|ISO]]'s [[Tag Image File Format / Electronic Photography#Timeline_for_development_and_revision|revision of TIFF/EP]] is reported to be adding Adobe's modifications and developments made for DNG into profile 2 of the new version of the standard. |
|||
As far as videocameras are concerned, [[ARRI]]'s [[Arriflex D-20]] and [[ARRIFLEX D-21|D-21]] cameras provide raw 3K-resolution sensor data with Bayern pattern as still images (one per frame) in a proprietary format (<code>.ari</code> file extension). |
|||
[[Red Digital Cinema Camera Company]], with its Mysterium sensor family of still and video cameras, uses its proprietary raw format called [[REDCODE]] (<code>.R3D</code> extension), which stores still as well as audio+video information in one lossy-compressed file. |
|||
==== PNG ==== |
|||
'''The PNG ([[Portable Network Graphics]])''' file format was created as the free, open-source successor to the GIF. The PNG file format supports truecolor (16 million colors) while the GIF supports only 256 colors. The PNG file excels when the image has large, uniformly colored areas. The lossless PNG format is best suited for editing pictures, and the lossy formats, like JPG, are best for the final distribution of photographic images, because JPG files are smaller than PNG files. [[Comparison of web browsers#Image format support|Many older browsers]] currently do not support the PNG file format, however, with [[Mozilla Firefox]] or Internet Explorer 7, all contemporary web browsers now support all common uses of the PNG format, including full 8-bit translucency (Internet Explorer 7 may display odd colors on translucent images ONLY when combined with IE's opacity filter). The [[Adam7 algorithm|Adam7]]-interlacing allows an early preview, even when only a small percentage of the image data has been transmitted. |
|||
PNG, an extensible file format for the lossless, portable, well-compressed storage of raster images. PNG provides a patent-free replacement for GIF and can also replace many common uses of TIFF. Indexed-color, grayscale, and truecolor images are supported, plus an optional alpha channel. |
|||
PNG is designed to work well in online viewing applications, such as the World Wide Web, so it is fully streamable with a progressive display option. PNG is robust, providing both full file integrity checking and simple detection of common transmission errors. Also, PNG can store gamma and chromaticity data for improved color matching on heterogeneous platforms. |
|||
Some programs do not handle PNG gamma correctly, which can cause the images to be saved or displayed darker than they should be.<ref>http://hsivonen.iki.fi/png-gamma/ The Sad Story of PNG Gamma "Correction"</ref> |
|||
Animated formats derived from PNG are [[Multiple-image Network Graphics|MNG]] and [[APNG]]. The latter is supported by Firefox and Opera and is backwards compatible with PNG. |
|||
==== GIF ==== |
|||
'''GIF ([[Graphics Interchange Format]]) ''' is limited to an 8-bit palette, or 256 colors. This makes the GIF format suitable for storing graphics with relatively few colors such as simple diagrams, shapes, logos and cartoon style images. The GIF format supports animation and is still widely used to provide image animation effects. It also uses a lossless compression that is more effective when large areas have a single color, and ineffective for detailed images or [[dither]]ed images. |
|||
==== BMP ==== |
|||
The '''[[BMP file format]]''' (Windows bitmap) handles graphics files within the Microsoft Windows OS. Typically, BMP files are uncompressed, hence they are large; the advantage is their simplicity and wide acceptance in Windows programs. |
|||
==== PPM, PGM, PBM, PNM ==== |
|||
[[Netpbm format]] is a family including the '''portable pixmap''' file format (PPM), the '''portable graymap''' file format (PGM) and the '''portable bitmap''' file format (PBM). These are either pure [[ASCII]] files or raw binary files with an ASCII header that provide very basic functionality and serve as a lowest-common-denominator for converting pixmap, graymap, or bitmap files between different platforms. Several applications refer to them collectively as the PNM format (Portable Any Map). |
|||
==== Others ==== |
|||
Other image file formats of raster type include: |
|||
* [[Truevision TGA|TGA]] (TARGA) |
|||
* [[ILBM]] (InterLeaved BitMap) |
|||
* [[PCX]] (Personal Computer eXchange) |
|||
* [[ECW (file format)|ECW]] (Enhanced Compression Wavelet) |
|||
* [[ERDAS IMAGINE |IMG]] (ERDAS IMAGINE Image) |
|||
* [[MrSID | SID]] (multiresolution seamless image database, MrSID) |
|||
* [[CD5 (file format)|CD5]] ([[Chasys Draw IES|Chasys Draw]] Image) |
|||
* [[FITS]] (Flexible Image Transport System) |
|||
* [[Progressive_Graphics_File|PGF]] (Progressive Graphics File) |
|||
=== Vector formats === |
|||
{{see also|Vector graphics}} |
|||
As opposed to the [[Raster graphics|raster]] image formats above (where the data describes the characteristics of each individual pixel), [[vector graphics|vector]] image formats contain a geometric description which can be rendered smoothly at any desired display size. |
|||
Vector file formats can contain bitmap data as well. [[3D graphics|3D graphic]] file formats are technically vector formats with pixel data [[texture mapping]] on the surface of a vector virtual object, warped to match the angle of the viewing perspective. |
|||
At some point, all vector graphics must be rasterized in order to be displayed on digital monitors. However, vector images can be displayed with analog [[Cathode ray tube|CRT]] technology such as that used in some [[electronic test equipment]], [[medical monitors]], [[radar]] displays, [[Laser light show|laser shows]] and [[Spacewar!|early video games]]. [[Plotters]] are printers that use vector data rather than pixel data to draw graphics. |
|||
==== CGM ==== |
|||
'''CGM ([[Computer Graphics Metafile]])''' is a file format for 2D [[vector graphics]], [[raster graphics]], and [[character (computer)|text]], and is defined by '''[[International Organization for Standardization|ISO]]/[[International Electrotechnical Commission|IEC]] 8632'''. All [[computer graphics|graphical]] elements can be specified in a textual [[source file]] that can be compiled into a [[binary file]] or one of two text representations. CGM provides a means of graphics data interchange for computer representation of 2D graphical information independent from any particular application, system, platform, or device. |
|||
It has been adopted to some extent in the areas of [[engineering drawing|technical illustration]] and professional [[Industrial design|design]], but has largely been superseded by formats such as [[Scalable Vector Graphics|SVG]] and [[AutoCAD DXF|DXF]]. |
|||
==== SVG ==== |
|||
'''SVG ([[Scalable Vector Graphics]])''' is an [[open standard]] created and developed by the [[World Wide Web Consortium]] to address the need (and attempts of several corporations) for a versatile, [[DOM scripting|scriptable]] and all-purpose vector format for the web and otherwise. The SVG format does not have a compression scheme of its own, but due to the textual nature of [[XML]], an SVG graphic can be compressed using a program<!--/algorithm/scheme?--> such as [[gzip]]. Because of its scripting potential, SVG is a key component in [[web application]]s: interactive web pages that look and act like applications. |
|||
==== Others ==== |
|||
Other image file formats of vector type include: |
|||
* ODG ([[OpenDocument Graphics]]) |
|||
* EPS ([[Encapsulated PostScript]]) |
|||
* PDF ([[Portable Document Format]]) |
|||
* [[SWF]] (shockwave Flash) |
|||
* WMF / EMF ([[Windows Metafile]] / Enhanced Metafile) |
|||
* XPS ([[XML Paper Specification]]) |
|||
=== 3D Formats === |
|||
==== PNS ==== |
|||
The [[PNG Stereo]] (.pns) format consists of a side-by-side image based on PNG ([[Portable Network Graphics]]). |
|||
==== JPS ==== |
|||
The [[JPEG Stereo]] (.jps) format consists of a side-by-side image format based on [[JPEG]]. |
|||
==== MPO ==== |
|||
Also known as a Multi-Picture Object or Multi-Picture Format, the MPO file format was first used in the [http://www.fujifilm.com/products/3d/camera/finepix_real3dw1/features/index.html FinePix REAL 3D W1] camera, made by [[FujiFilm]]. The format is proposed as an open standard by CIPA ([[Camera & Imaging Products Association]]) as [http://www.cipa.jp/english/hyoujunka/kikaku/pdf/DC-007_E.pdf CIPA DC-007-2009]. It contains multiple JPEG images with respective thumbnails and metadata. |
|||
== See also == |
|||
* [[Comparison of graphics file formats]] |
|||
== References == |
|||
{{reflist}} |
|||
== External links == |
|||
* [http://www.dcs.ed.ac.uk/home/mxr/gfx/2d/BMP.txt Description of Bitmap graphics file] |
|||
* [http://www.cybercom.net/~dcoffin/dcraw/ Dave Coffin's dcraw] Converting digital camera raw image format files into other formats. |
|||
* [http://freeimage.sourceforge.net/ Open Source Library supporting a large number of image formats] |
|||
* [http://www.acasystems.com/en/web-thumb-activex/faq-image-format.htm Which image format is best?] Compare BMP, JPG, GIF, PNG, TIFF, WMF and EMF image formats. |
|||
* [http://www.file-extensions.org/filetype/extension/name/bitmap-image-files Bitmap image file types list] |
|||
* [http://www.wotsit.org/ Wotsit.org file and data format resource] |
|||
[[Category:Graphics file formats| ]] |
|||
[[ja:画像ファイルフォーマット]] |
|||
[[pl:formaty plików graficznych]] |
|||
[[sv:Bildfilformat]] |
Revision as of 04:34, 7 May 2010
Image file formats are standardized means of organizing and storing digital images. Image files are composed of either pixel or vector (geometric) data that are rasterized to pixels when displayed (with few exceptions) in a vector graphic display. The pixels that constitute an image are ordered as a grid (columns and rows); each pixel consists of numbers representing magnitudes of brightness and color.
Image file sizes
Image file size—expressed as the number of bytes—increases with the number of pixels composing an image, and the colour depth of the pixels. The greater the number of rows and columns, the greater the image resolution, and the larger the file. Also, each pixel of an image increases in size when its colour depth increases—an 8-bit pixel (1 byte) stores 256 colors, a 24-bit pixel (3 bytes) stores 16 million colors, the latter known as truecolor.
Image compression uses algorithms to decrease the size of a file. High resolution cameras produce large image files, ranging from hundreds of kilobytes to megabytes, per the camera's resolution and the image-storage format capacity. High resolution digital cameras record 12 megapixel (1MP = 1,000,000 pixels / 1 million) images, or more, in truecolor. For example, an image recorded by a 12 MP camera; since each pixel uses 3 bytes to record truecolor, the uncompressed image would occupy 36,000,000 bytes of memory—a great amount of digital storage for one image, given that cameras must record and store many images to be practical. Faced with large file sizes, both within the camera and a storage disc, image file formats were developed to store such large images. An overview of the major graphic file formats follows below.
Image file compression
There are two types of image file compression algorithms: lossless and lossy.
Lossless compression algorithms reduce file size without losing image quality, though they are not compressed into as small a file as a lossy compression file. When image quality is valued above file size, lossless algorithms are typically chosen.
Lossy compression algorithms take advantage of the inherent limitations of the human eye and discard invisible information. Most lossy compression algorithms allow for variable quality levels (compression) and as these levels are increased, file size is reduced. At the highest compression levels, image deterioration becomes noticeable as "compression artifacting". The images below demonstrate the noticeable artifacting of lossy compression algorithms; select the thumbnail image to view the full size version.[1]
Major graphic file formats
Including proprietary types, there are hundreds of image file types.[2] The PNG, JPEG, and GIF formats are most often used to display images on the Internet. These graphic formats are listed and briefly described below, separated into the two main families of graphics: raster and vector.
In addition to straight image formats, Metafile formats are portable formats which can include both raster and vector information. Examples are application-independent formats such as WMF and EMF. The metafile format is an intermediate format. Most Windows applications open metafiles and then save them in their own native format.[3][4] Page description language refers to formats used to describe the layout of a printed page containing text, objects and images. Examples are PostScript, PDF and PCL.
Raster formats
These formats store images as bitmaps (also known as pixmaps). For a description of the technology aside from the format, see Raster graphics.
JPEG/JFIF
JPEG (Joint Photographic Experts Group) is a compression method; JPEG-compressed images are usually stored in the JFIF (JPEG File Interchange Format) file format. JPEG compression is (in most cases) lossy compression. The JPEG/JFIF filename extension in DOS is JPG (other operating systems may use JPEG). Nearly every digital camera can save images in the JPEG/JFIF format, which supports 8 bits per color (red, green, blue) for a 24-bit total, producing relatively small files. When not too great, the compression does not noticeably detract from the image's quality, but JPEG files suffer generational degradation when repeatedly edited and saved. The JPEG/JFIF format also is used as the image compression algorithm in many Adobe PDF files.
Exif
The Exif (Exchangeable image file format) format is a file standard similar to the JFIF format with TIFF extensions; it is incorporated in the JPEG-writing software used in most cameras. Its purpose is to record and to standardize the exchange of images with image metadata between digital cameras and editing and viewing software. The metadata are recorded for individual images and include such things as camera settings, time and date, shutter speed, exposure, image size, compression, name of camera, color information, etc. When images are viewed or edited by image editing software, all of this image information can be displayed.
TIFF
The TIFF (Tagged Image File Format) format is a flexible format that normally saves 8 bits or 16 bits per color (red, green, blue) for 24-bit and 48-bit totals, respectively, usually using either the TIFF or TIF filename extension. TIFF's flexibility is both blessing and curse, because no single reader reads every type of TIFF file. TIFFs are lossy and lossless; some offer relatively good lossless compression for bi-level (black&white) images. Some digital cameras can save in TIFF format, using the LZW compression algorithm for lossless storage. TIFF image format is not widely supported by web browsers. TIFF remains widely accepted as a photograph file standard in the printing business. TIFF can handle device-specific color spaces, such as the CMYK defined by a particular set of printing press inks. OCR (Optical Character Recognition) software packages commonly generate some (often monochromatic) form of TIFF image for scanned text pages.
RAW
RAW refers to a family of raw image formats that are options available on some digital cameras. These formats usually use a lossless or nearly-lossless compression, and produce file sizes much smaller than the TIFF formats of full-size processed images from the same cameras. Although there is a standard raw image format, (ISO 12234-2, TIFF/EP), the raw formats used by most cameras are not standardized or documented, and differ among camera manufacturers. Many graphic programs and image editors may not accept some or all of them, and some older ones have been effectively orphaned already. Adobe's Digital Negative (DNG) specification is an attempt at standardizing a raw image format to be used by cameras, or for archival storage of image data converted from undocumented raw image formats, and is used by several niche and minority camera manufacturers including Pentax, Leica, and Samsung. The raw image formats of more than 230 camera models, including those from manufacturers with the largest market shares such as Canon, Nikon, Sony, and Olympus, can be converted to DNG.[5] DNG was based on ISO 12234-2, TIFF/EP, and ISO's revision of TIFF/EP is reported to be adding Adobe's modifications and developments made for DNG into profile 2 of the new version of the standard.
As far as videocameras are concerned, ARRI's Arriflex D-20 and D-21 cameras provide raw 3K-resolution sensor data with Bayern pattern as still images (one per frame) in a proprietary format (.ari
file extension).
Red Digital Cinema Camera Company, with its Mysterium sensor family of still and video cameras, uses its proprietary raw format called REDCODE (.R3D
extension), which stores still as well as audio+video information in one lossy-compressed file.
PNG
The PNG (Portable Network Graphics) file format was created as the free, open-source successor to the GIF. The PNG file format supports truecolor (16 million colors) while the GIF supports only 256 colors. The PNG file excels when the image has large, uniformly colored areas. The lossless PNG format is best suited for editing pictures, and the lossy formats, like JPG, are best for the final distribution of photographic images, because JPG files are smaller than PNG files. Many older browsers currently do not support the PNG file format, however, with Mozilla Firefox or Internet Explorer 7, all contemporary web browsers now support all common uses of the PNG format, including full 8-bit translucency (Internet Explorer 7 may display odd colors on translucent images ONLY when combined with IE's opacity filter). The Adam7-interlacing allows an early preview, even when only a small percentage of the image data has been transmitted. PNG, an extensible file format for the lossless, portable, well-compressed storage of raster images. PNG provides a patent-free replacement for GIF and can also replace many common uses of TIFF. Indexed-color, grayscale, and truecolor images are supported, plus an optional alpha channel. PNG is designed to work well in online viewing applications, such as the World Wide Web, so it is fully streamable with a progressive display option. PNG is robust, providing both full file integrity checking and simple detection of common transmission errors. Also, PNG can store gamma and chromaticity data for improved color matching on heterogeneous platforms. Some programs do not handle PNG gamma correctly, which can cause the images to be saved or displayed darker than they should be.[6]
Animated formats derived from PNG are MNG and APNG. The latter is supported by Firefox and Opera and is backwards compatible with PNG.
GIF
GIF (Graphics Interchange Format) is limited to an 8-bit palette, or 256 colors. This makes the GIF format suitable for storing graphics with relatively few colors such as simple diagrams, shapes, logos and cartoon style images. The GIF format supports animation and is still widely used to provide image animation effects. It also uses a lossless compression that is more effective when large areas have a single color, and ineffective for detailed images or dithered images.
BMP
The BMP file format (Windows bitmap) handles graphics files within the Microsoft Windows OS. Typically, BMP files are uncompressed, hence they are large; the advantage is their simplicity and wide acceptance in Windows programs.
PPM, PGM, PBM, PNM
Netpbm format is a family including the portable pixmap file format (PPM), the portable graymap file format (PGM) and the portable bitmap file format (PBM). These are either pure ASCII files or raw binary files with an ASCII header that provide very basic functionality and serve as a lowest-common-denominator for converting pixmap, graymap, or bitmap files between different platforms. Several applications refer to them collectively as the PNM format (Portable Any Map).
Others
Other image file formats of raster type include:
- TGA (TARGA)
- ILBM (InterLeaved BitMap)
- PCX (Personal Computer eXchange)
- ECW (Enhanced Compression Wavelet)
- IMG (ERDAS IMAGINE Image)
- SID (multiresolution seamless image database, MrSID)
- CD5 (Chasys Draw Image)
- FITS (Flexible Image Transport System)
- PGF (Progressive Graphics File)
Vector formats
As opposed to the raster image formats above (where the data describes the characteristics of each individual pixel), vector image formats contain a geometric description which can be rendered smoothly at any desired display size.
Vector file formats can contain bitmap data as well. 3D graphic file formats are technically vector formats with pixel data texture mapping on the surface of a vector virtual object, warped to match the angle of the viewing perspective.
At some point, all vector graphics must be rasterized in order to be displayed on digital monitors. However, vector images can be displayed with analog CRT technology such as that used in some electronic test equipment, medical monitors, radar displays, laser shows and early video games. Plotters are printers that use vector data rather than pixel data to draw graphics.
CGM
CGM (Computer Graphics Metafile) is a file format for 2D vector graphics, raster graphics, and text, and is defined by ISO/IEC 8632. All graphical elements can be specified in a textual source file that can be compiled into a binary file or one of two text representations. CGM provides a means of graphics data interchange for computer representation of 2D graphical information independent from any particular application, system, platform, or device. It has been adopted to some extent in the areas of technical illustration and professional design, but has largely been superseded by formats such as SVG and DXF.
SVG
SVG (Scalable Vector Graphics) is an open standard created and developed by the World Wide Web Consortium to address the need (and attempts of several corporations) for a versatile, scriptable and all-purpose vector format for the web and otherwise. The SVG format does not have a compression scheme of its own, but due to the textual nature of XML, an SVG graphic can be compressed using a program such as gzip. Because of its scripting potential, SVG is a key component in web applications: interactive web pages that look and act like applications.
Others
Other image file formats of vector type include:
- ODG (OpenDocument Graphics)
- EPS (Encapsulated PostScript)
- PDF (Portable Document Format)
- SWF (shockwave Flash)
- WMF / EMF (Windows Metafile / Enhanced Metafile)
- XPS (XML Paper Specification)
3D Formats
PNS
The PNG Stereo (.pns) format consists of a side-by-side image based on PNG (Portable Network Graphics).
JPS
The JPEG Stereo (.jps) format consists of a side-by-side image format based on JPEG.
MPO
Also known as a Multi-Picture Object or Multi-Picture Format, the MPO file format was first used in the FinePix REAL 3D W1 camera, made by FujiFilm. The format is proposed as an open standard by CIPA (Camera & Imaging Products Association) as CIPA DC-007-2009. It contains multiple JPEG images with respective thumbnails and metadata.
See also
References
- ^ NOTE: These two images are illustrative only, both were converted from a lossless, compressed RAW image in Adobe Photoshop CS2. The lossy image was repeatedly opened and resaved using a low JPEG quality setting to increase visual artifacting and then exported as a PNG, while the "lossless" image was saved once as a PNG to minimize visual artifacting.
- ^ Image File Types
- ^ MSDN: Windows Metafile Format Specification
- ^ MSDN: Enhanced Metafile Format Specification
- ^ Adobe: Digital Negative (DNG) - The public, archival format for digital camera raw data
- ^ http://hsivonen.iki.fi/png-gamma/ The Sad Story of PNG Gamma "Correction"
External links
- Description of Bitmap graphics file
- Dave Coffin's dcraw Converting digital camera raw image format files into other formats.
- Open Source Library supporting a large number of image formats
- Which image format is best? Compare BMP, JPG, GIF, PNG, TIFF, WMF and EMF image formats.
- Bitmap image file types list
- Wotsit.org file and data format resource