Question: why jpeg is better than png?
Answer: Unlike JPEG, which relies on DCT compression, PNG uses LZW compression — the same as used by GIF and TIFF formats. ... The biggest advantage of PNG over JPEG is that the compression is lossless, meaning there is no loss in quality each time it is opened and saved again. PNG also handles detailed, high-contrast images well.