Content deleted Content added
m Reverted 1 edit by 2001:8F8:153F:17A:E9CE:B2C0:2F0D:6DDE (talk) to last revision by Billjones94 |
Fred Gandt (talk | contribs) CE + MOS:BOLD + MOS:GOODHEAD + {{annotated link}}s in MOS:SEEALSO |
||
(52 intermediate revisions by 33 users not shown) | |||
Line 1:
{{short description|Standardized means of organizing and storing digital images}}
{{About|digital image formats used to store photographic and other images|disk-image file formats|Disk image|digital file formats in general|File format|introductory information on Wikipedia's use of images|Wikipedia:Images}}
{{Redir|Image format|the camera sensor format|Image sensor format}}
{{Original research|date=August 2025}}
An '''image file format''' is a [[file format]] for a digital image. There are many formats that can be used, such as [[JPEG]], [[
Raster formats are for [[2D image]]s. A 3D image can be represented within a 2D format, as in a [[
Image [[Computer file|files]] are composed of digital data in one of these formats so that the data can be displayed on a digital (computer) display or printed out using a printer. A common method for displaying digital image information has historically been [[Raster graphics|rasterization]].
== Image file sizes ==
The size of raster image files is positively correlated with the number of pixels in the image and the color depth (bits per pixel). Images can be compressed in various ways, however. A compression [[algorithm]] stores either an exact representation or an approximation of the original image in a smaller number of bytes that can be expanded back to its uncompressed form with a corresponding decompression algorithm. Images with the same number of pixels and color depth can have very different compressed file
For example, a 640{{resx}}480 pixel image with 24-bit color would occupy almost a megabyte of space:
▲:640{{resx}}480{{resx}}24 = 7,372,800 bits = 921,600 bytes = 900 [[KiB]]
With vector images, the file size increases only with the addition of more vectors.
== Image file compression ==
There are two types of
== Major graphic file formats ==
{{See also|Comparison of graphics file formats#Technical details}}
<imagemap>
rect 26 4 94 28 [[Digital photography]]
rect 241 8 322 33 [[Image editing]]
rect 432 4 498 28 [[Digital art]]
rect 5 132 51 156 [[Raster graphics]]
rect 456 132 508 156 [[Vector graphics]]
rect 241 265 322 289 [[Publishing]]
rect 240 128 323 154 [[Image file format]]
rect 5 34 112 64 [[Raw image format]]
rect 117 56 158 99 [[EXR file]]
rect 172 41 205 96 [[GIMP]]
rect 211 40 261 96 [[Adobe Photoshop]]
rect 268 40 313 96 [[Krita]]
rect 318 40 368 96 [[Adobe Illustrator]]
rect 375 40 429 95 [[Inkscape]]
rect 436 40 485 96 [[Adobe InDesign]]
rect 29 72 66 117 [[High Efficiency Image File Format]]
rect 73 72 112 242 [[JPEG]]
rect 118 108 157 163 [[TIFF]]
rect 28 249 67 271 [[GIF]]
rect 73 250 112 284 [[WebP]]
rect 119 236 157 283 [[AVIF]]
rect 162 101 229 282 [[JPEG XL]]
rect 119 168 157 230 [[PNG]]
rect 273 170 321 244 [[Scalable Vector Graphic]]
rect 333 124 381 245 [[PDF]]
rect 387 147 437 195 [[PostScript]]
desc bottom-left
▲[[File:Image formats by scope.svg|thumb|upright=3|center|Categorization of image formats by scope]]
</imagemap>
Including proprietary types, there are hundreds of image file types. The PNG, JPEG, and GIF formats are most often used to display images on the Internet. Some of these graphic formats are listed and briefly described below, separated into the two main families of graphics: raster and vector. Raster images are further divided into formats primarily aimed at (web) delivery (i.e., supporting relatively strong compression) versus formats primarily aimed at authoring or interchange (uncompressed or only relatively weak compression).
In addition to straight image formats,
=== Raster formats (2D) ===
Line 41 ⟶ 69:
===== JPEG =====
[[JPEG]] (Joint Photographic Experts Group) is a [[lossy compression]] method; JPEG-compressed images are usually stored in the
===== GIF =====
The
===== PNG =====
The
Compared to JPEG, PNG excels when the image has large, uniformly colored areas. Even for photographs – where JPEG is often the choice for final distribution since its lossy compression typically yields smaller file sizes – PNG is still well-suited to storing images during the editing process because of its lossless compression.
PNG provides a patent-free replacement for GIF (though GIF is itself now patent-free) and can also replace many common uses of TIFF. Indexed-color, grayscale, and truecolor images are supported, plus an optional alpha channel. The [[
Animated formats derived from PNG are [[Multiple-image Network Graphics|MNG]] and [[APNG]], which is backwards compatible with PNG and supported by most browsers.
===== JPEG 2000 =====
[[JPEG 2000]] is a compression standard enabling both lossless and lossy storage. The compression methods used are different from the ones in standard JFIF/JPEG; they improve quality and compression ratios, but also require more computational power to process. JPEG 2000 also adds features that are missing in JPEG. It is not nearly as common as JPEG
===== WebP =====
Line 63 ⟶ 91:
In 2011,<ref>{{cite web |url=https://groups.google.com/a/webmproject.org/group/webp-discuss/browse_thread/thread/4ab76cbde89e6ade/23512e5a1ed1dab0 |title=WebP-Mux (RIFF based container) framework |last=Arora |first=Vikas |date=3 October 2011 |work=[[Google Groups]] |access-date=18 November 2011 |archive-date=13 March 2013 |archive-url=https://web.archive.org/web/20130313070636/https://groups.google.com/a/webmproject.org/group/webp-discuss/browse_thread/thread/4ab76cbde89e6ade/23512e5a1ed1dab0 |url-status=live }}</ref> Google added an "Extended File Format" allowing WebP support for [[animation]], [[ICC profile]], [[Extensible Metadata Platform|XMP]] and [[Exif]] [[metadata]], and tiling.
The support for animation allowed for converting older animated
The WebP container (i.e., RIFF container for WebP) allows feature support over and above the basic use case of WebP (i.e., a file containing a single image encoded as a VP8 key frame). The WebP container provides additional support for:
* Lossless compression – An image can be losslessly compressed, using the WebP Lossless Format.
* Metadata – An image may have metadata stored in EXIF or XMP formats.
* Transparency – An image may have transparency, i.e., an alpha channel.
* Color Profile – An image may have an embedded ICC profile as described by the International Color Consortium.
* Animation – An image may have multiple frames with pauses between them, making it an animation.<ref>{{cite web |title=WebP Container Specification |url=https://developers.google.com/speed/webp/docs/riff_container |website=Google Developers |access-date=4 April 2020 |archive-date=18 May 2022 |archive-url=https://web.archive.org/web/20220518091634/https://developers.google.com/speed/webp/docs/riff_container |url-status=live }} [[File:CC-BY icon.svg|50px]]
===== HDR raster formats =====
Line 79 ⟶ 106:
===== HEIF =====
The [[High Efficiency Image File Format]] (HEIF) is an image container format that was standardized by [[
===== AVIF =====
===== JPEG XL =====
[[JPEG XL]] is a royalty-free raster-graphics file format that supports both lossy and lossless compression. It supports reversible recompression of existing JPEG files, as well as high-precision HDR (up to 32-bit floating point values per pixel component). It is designed to be usable for both delivery and authoring use cases.
==== Authoring and interchange formats <span class="anchor" id="Authoring / Interchange formats"></span> ====
===== TIFF =====
The
===== BMP =====
The
===== PPM, PGM, PBM, and PNM =====
[[Netpbm format]] is a family including the
===== Container formats of
These image formats contain various images, layers and objects, out of which the final image is to be composed by [[raster graphics editors]]:
* AFPhoto ([[Affinity Photo]] Document)
* [[Chasys Draw IES|CD5]] ([[Chasys Draw IES|Chasys Draw]] Image)
Line 106 ⟶ 132:
* [[Corel Photo Paint|CPT]] (Corel Photo Paint)
* [[Krita|KRA]] (Krita)
* MDP ([[MediBang Paint|Medibang]] and FireAlpaca)<ref>{{cite web |url=https://fileinfo.com/extension/mdp |title=.MDP File Extension |access-date=2025-05-01}}</ref>
* [[Paint.net|PDN]] (Paint Dot Net)
* PLD ([[PhotoLine]] Document)
* [[Adobe Photoshop#File format|PSD]] (Adobe PhotoShop Document)
* [[Corel Paint Shop Pro|PSP]] (Corel Paint Shop Pro)
* [[Paint Tool SAI|SAI]] (Paint Tool SAI)
* [[XCF (file format)|XCF]] (eXperimental Computing Facility format)
==== Other raster formats ====
* BPG ([[Better Portable Graphics]])
▲* BPG ([[Better Portable Graphics]]) — an image format from 2014. Its purpose is to replace JPEG when quality or file size is an issue. To that end, it features a high [[data compression ratio]], based on a subset of the [[High Efficiency Video Coding|HEVC]] video compression standard, including [[lossless compression]]. In addition, it supports various meta data (such as EXIF).
▲* DEEP — [[Interchange File Format|IFF]]-style format used by TVPaint
* [[Drawn File|DRW]] (Drawn File)
* [[ECW (file format)|ECW]] (Enhanced Compression Wavelet)
* [[FITS]] (Flexible Image Transport System)
* [[FLIF]] (Free Lossless Image Format)
* [[ICO (file format)|ICO]]
* [[ILBM]]
* [[ERDAS IMAGINE|IMG]] (ERDAS IMAGINE Image)
* IMG ([[Graphics Environment Manager]] (GEM) image file)
* [[JPEG XR]]
* [[Nrrd]] (Nearly raw raster data)
* [[PAM graphics format|PAM]] (Portable Arbitrary Map)
* [[PCX]] (PiCture eXchange)
* [[Progressive Graphics File|PGF]] (Progressive Graphics File)
* [[Silicon Graphics Image|SGI]] (Silicon Graphics Image)
▲* [[Silicon Graphics Image|SGI]] (Silicon Graphics Image) — native raster graphics file format for Silicon Graphics workstations
* [[MrSID|SID]] (multiresolution seamless image database, MrSID)
* [[Sun Raster]]
* [[Truevision TGA|TGA]] (TARGA)
* [[VICAR file format]]
* XISF (Extensible Image Serialization Format)<ref>{{cite web |url=https://pixinsight.com/xisf/ |title=XISF |access-date=2025-05-01}}</ref>
=== Vector formats ===
Line 143 ⟶ 167:
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.
At some point, all vector graphics must be rasterized in order to be displayed on digital monitors. Vector images may also be displayed with analog [[Cathode
==== CGM ====
CGM ([[Computer Graphics Metafile]]) is a file format for [[vector graphics|2D vector graphics]], raster graphics, and [[character (computer)|text]], and is defined by
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 [[
==== Gerber format (RS-274X) ====
Line 157 ⟶ 181:
==== Other 2D vector formats ====
* AFDesign ([[Affinity Designer]] document)
* AI ([[Adobe Illustrator Artwork]])
*
* !
* [[DrawingML]]
*
* GLE ([[Graphics Layout Engine]])
* [[HP-GL]] (Hewlett-Packard Graphics Language)
* HVIF ([[Haiku Vector Icon Format]])
* [[Lottie (file format)|Lottie]]
* [[MathML]] (Mathematical Markup Language)
* [[NAPLPS]] (North American Presentation Layer Protocol Syntax)
* ODG ([[OpenDocument Graphics]])
* PGML ([[Precision Graphics Markup Language]])
* [[PSTricks]] and [[PGF/TikZ]] are languages for creating graphics in [[TeX]] documents
*
* [[ReGIS]] (Remote Graphic Instruction Set)
* [[Remote imaging protocol]]
*
* VML ([[Vector Markup Language]])
* [[Xar (graphics)|Xar]]
* XPS ([[
==== 3D vector formats ====
{{off topic |
* [[Additive Manufacturing File Format|AMF]] – Additive Manufacturing File Format
* [[Asymptote (vector graphics language)|Asymptote]] – A language that lifts TeX to 3D.
* [[
* [[COLLADA]]
* [[.dwf]]
* [[.dwg]]
* [[.dxf]]
* eDrawings<ref>{{cite web |url=https://www.edrawingsviewer.com/frequently-asked-questions |title=Frequently Asked Questions |access-date=2025-05-01}}</ref>
* [[.flt]] – [[OpenFlight]]
* [[FVRML]] – and FX3D, function-based extensions of VRML and X3D
* [[glTF]]
* HSF<ref>{{cite web |url=https://fileinfo.com/extension/hsf |title=.HSF File Extension |access-date=2025-05-01}}</ref>
* [[IGES]]
* [[JT (visualization format)|JT]]▼
* .MA (Maya ASCII format)<ref>{{cite web |url=https://docs.fileformat.com/3d/ma/ |title=What is an MA file? |access-date=2025-05-01}}</ref>
* .MB (Maya Binary format)<ref>{{cite web |url=https://docs.fileformat.com/3d/mb/ |title=What is an MB file? |access-date=2025-05-01}}</ref>
▲*[[JT (visualization format)|JT]]
* .OBJ [[Wavefront .obj file|Wavefront]]▼
* [[OpenGEX]] – Open Game Engine Exchange▼
▲*.OBJ [[Wavefront .obj file|Wavefront]]
* [[POV-Ray]] scene description language▼
▲*[[OpenGEX]] – Open Game Engine Exchange
* [[PRC (File format)|PRC]]
▲*[[PLY]]
* [[ISO 10303|STEP]]▼
▲*[[POV-Ray]] scene description language
* [[
* [[STL (file format)|STL]] – A stereolithography format▼
▲*[[ISO 10303|STEP]]
* [[U3D]] – Universal 3D file format▼
* [[VRML]] – Virtual Reality Modeling Language▼
▲*[[STL (file format)|STL]] – A stereolithography format
▲*[[U3D]] – Universal 3D file format
* XGL<ref>{{cite web |url=https://www.cadinterop.com/en/formats/mesh/xgl.html |title=XGL Guide for CAD Interoperability: Optimal Visualization and Conversion of 3D Models |access-date=2025-05-01}}</ref>
▲*[[VRML]] – Virtual Reality Modeling Language
* [[XVL]]
* [[xVRML]]
* [[
* 3DF<ref>{{cite web |url=https://fileinfo.com/extension/3df |title=.3DF File Extension |access-date=2025-05-01}}</ref>
▲*[[xVRML]]
* .3DM<ref>{{cite web |url=https://www.loc.gov/preservation/digital/formats/fdd/fdd000601.shtml |title=3D Model File Format Family |access-date=2025-05-01}}</ref>
▲*[[X3D]]
* [[.3ds]] – Autodesk 3D Studio
* [[3DXML]]
* X3D – Vector format used in 3D applications from [[Xara]]
=== Compound formats ===
Line 226 ⟶ 247:
These are formats containing both pixel and vector data, possible other data, e.g. the interactive features of PDF.
* EPS ([[Encapsulated PostScript]])
*
* PDF ([[Portable Document Format]])
* [[PostScript]], a [[page description language]] with strong graphics capabilities * [[PICT]] (Classic Macintosh QuickDraw file)
* WMF / EMF ([[Windows Metafile]] / Enhanced Metafile)
* [[SWF]] (Shockwave Flash)
* [[
=== Stereo formats ===
Line 239 ⟶ 261:
* JPS The [[JPEG Stereo]] (.jps) format consists of a side-by-side image format based on [[JPEG]].
== See also ==
*
*
* {{annotated link|Display resolution standards}}
* [[
== References ==
|