Why should I use PNG and not JPG?

AndroidImagePngJpeg

Android Problem Overview


I'm building an app that uses a lot of images, so it's getting pretty big. I got more than 15mb in PNG images, and if I convert those images to JPG I would get 5MB or less! So, why should I use PNG instead of JPG?

I know that PNGs are preferred, but what would I lose with JPG?

EDIT: Thank you everybody!

Just a note: Since I got my answer and turns out that I will need to use PNG in most files, I found out that website http://tinypng.org/ , and that's helping me a lot. My 15mb of images are now 7mb. So, if anyone is in the same situation that I am, I hope that it helps!

Android Solutions


Solution 1 - Android

Solution 2 - Android

PNGs are smaller for images a few solid colors (solid polygons) (because they make JPEG artifacts more obvious) JPEGs are better for photos and other images that don't have consistent patterns (JPEG artifacts are harder to notice here)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionVictor SantiagoView Question on Stackoverflow
Solution 1 - AndroidParag MeshramView Answer on Stackoverflow
Solution 2 - AndroidHayk SaakianView Answer on Stackoverflow