Image ConvertersLesson 227Free preview
JPG to GIF
This lesson is part of Web Developer Tools · All levels
Summary
Conversion of JPG to GIF converts photos to a palette of up to 256 colors, so the fine gradation often turns into a color tape. Dithering can mask the effect, but the detail remains diminished. GIFs are only appropriate if you need long-standing compatibility or want to incorporate images into simple animation.
Key points
- GIFs limit the color to 256 per frame
- Photos with fine gradations are vulnerable to appeal
- Dithering adds a dot pattern to disguise the appeal
- GIF transparency is only one bit, with no semi-transparent edges.
- For photos, JPG or WebP gives better results
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.