From the course: HTML: Images and Figures

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

GIF and PNG: The format for line art

GIF and PNG: The format for line art - HTML Tutorial

From the course: HTML: Images and Figures

Start my 1-month free trial

GIF and PNG: The format for line art

- [Instructor] Let's start by investigating line art formats. The Graphics Interchange Format pronounced GIF has a long history. GIF's can have only 256 colors which is fine for the time when they were invented. Monitors usually didn't support more colors. You could specify one color as the transparent color and those pixels would not display. In 1989 animation was added to the GIF format by allowing multiple frames in one file along with timing information on when to display them. While GIF is good, it has drawbacks. At the time the web took off, the 256 color limit was not enough for the much more capable monitors and the algorithm was patented which meant people had to pay royalties to use the GIF format or face legal action when the patent wasn't forced. In 1996 a group of graphic experts came up with Portable Network Graphics, a patented free format that allows more than 16 million colors with varying transparency on a pixel by pixel basis. It does not however have an animation…

Contents