Image CompressionLesson 251Free preview
Compress to 50 KB
This lesson is part of Web Developer Tools · All levels
Summary
The 50 KB target often appears on profile photo upload forms or simple product listings. At this size, a photo can still look decent if the dimensions are not too large and the quality is kept in the mid range. The compressor usually automatically adjusts the quality, then discards the metadata so that a few additional kilobyte is lost. Test the results on the phone screen because that's where the images are most often seen.
Key points
- 50 KB is suitable for medium-sized profile or list photos
- A dimension of about 400×800 pixels is usually enough for this target.
- Metadata and thumbnails EXIF can be discarded to save space
- Quality 6075 is often used as a starting point
- Check the results on the phone screen, not just the big monitor.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.