Image ConvertersLesson 224Free preview
JPG to PNG
This lesson is part of Web Developer Tools · All levels
Summary
Converting JPG to PNG converts a lossy photo to a lossless file, but does not recover lost details. PNGs are usually larger and useful if you need to edit repeatedly or add transparency. For the simple purpose of displaying photos on the web, JPG or WebP is usually more cost-effective.
Key points
- PNG is lossless, but cannot repair JPEG artifacts
- The resulting conversion files are generally larger than the original JPG
- PNG supports alpha, so it can be used for transparent composition.
- Repeat editing on PNG does not add a new generation of compression
- The conversion back to JPG will apply lossy compression again
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.