Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
JPEG File Interchange Format
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== JFIF extension APP0 marker segment === Immediately following the JFIF APP0 marker segment may be a JFIF extension APP0 marker segment. This segment may only be present for JFIF versions 1.02 and above. It allows to embed a thumbnail image in 3 different formats. {| class="wikitable" |- !colspan="3" style="text-align:left"|JFIF extension APP0 marker segment |- ! style="text-align:left"|Field || style="text-align:left"|Size (bytes) || style="text-align:left"|Description |- | APP0 marker || 2 || <code>FF E0</code> |- | Length || 2 || Length of segment excluding APP0 marker |- | Identifier || 5 || <code>4A 46 58 58 00</code> = "JFXX" in [[ASCII]], terminated by a null byte |- | Thumbnail format || 1 || Specifies what data format is used for the following embedded thumbnail: * <code>10</code> : JPEG format * <code>11</code> : 1 byte per pixel palettized format * <code>13</code> : 3 byte per pixel RGB format |- | Thumbnail data || variable || Depends on the thumbnail format, see below |} The thumbnail data depends on the thumbnail format as follows: {| class="wikitable" |- !colspan="3" style="text-align:left"| Thumbnail stored using JPEG encoding |- ! style="text-align:left"|Field || style="text-align:left"|Size (bytes) || style="text-align:left"|Description |- | SOI || 2 || <code>FF D8</code> |- | || variable || Must be JIF format using YCbCr or just Y, and must not contain JFIF or JFXX segments |- | EOI || 2 || <code>FF D9</code> |} {| class="wikitable" |- !colspan="3" style="text-align:left"| Thumbnail stored using one byte per pixel |- ! style="text-align:left"|Field || style="text-align:left"|Size (bytes) || style="text-align:left"|Description |- | Xthumbnail || 1 || Horizontal pixel count of the following embedded thumbnail. Must not be zero |- | Ythumbnail || 1 || Vertical pixel count of the following embedded thumbnail. Must not be zero |- | Thumbnail palette || 768 || 256 palette entries, each containing a 24 bit RGB color value |- | Thumbnail data || ''n'' || One byte per pixel containing the index of the color within the palette, with ''n'' = Xthumbnail Γ Ythumbnail |} {| class="wikitable" |- !colspan="3" style="text-align:left"| Thumbnail stored using three byte per pixel |- ! style="text-align:left"|Field || style="text-align:left"|Size (bytes) || style="text-align:left"|Description |- | Xthumbnail || 1 || Horizontal pixel count of the following embedded thumbnail. Must not be zero |- | Ythumbnail || 1 || Vertical pixel count of the following embedded thumbnail. Must not be zero |- | Thumbnail data || 3 Γ ''n'' || Uncompressed 24 bit RGB (8 bits per color channel) raster thumbnail data in the order R0, G0, B0, ... Rn-1, Gn-1, Bn-1; with ''n'' = Xthumbnail Γ Ythumbnail |}
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
JPEG File Interchange Format
(section)
Add topic