HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 41. CH38 CODECS: CODING AND DECODING 313


ASCIIis an old standard. It stands for American Standard Code for In-
formation Interchange. It is a subset of UTF-8.


Other coding schemes are also used, particularly in places where UTF-8
results in long encodings. I am thinking here especially of China, Japan,
and Korea.


http://en.wikipedia.org/wiki/CJK_charactershas more.


41.5 Encoding Images


There are several popular encoding schemes for images. In this section
we identify five of them: GIF, JPEG, PNG, SVG, and TIFF. There are
many more but their usage is less common. There is nothing to prevent the
creation of additional schemes in the future.


GIF: Graphics Interchange Format


GIFstands for Graphics Interchange Format. It is one of the oldest image
standards on the Internet. It was originally protected by patents, which
caused some developers to avoid using it.


GIF provides both animation and transparency. Transparency allows for
images that do not appear to be rectangular.


http://en.wikipedia.org/wiki/GIFhas more.


JEPG: Joint Photographic Experts Group


JPEGstands for Joint Photographic Experts Group. It is very commonly
used both in digital cameras and on the Internet. It is commonly abbreviated
JPG.


JPEG does not provide either animation or transparency. It does a good
job of image compression.


http://en.wikipedia.org/wiki/JPEGhas more.


PNG: Portable Network Graphics


PNGstands for Portable Network Graphics. It is increasingly popular and

Free download pdf