In contrast, PNG images use something called LZW compression. It leads to a much more detailed image. If you need to maintain a much higher image quality, you might want to go with PNG images; however, keep in mind that the ultimate file size will be a bit larger with PNG images.
Transparent backgrounds represent a major difference between JPG images and PNG images. In general, JPG images do not support transparent backgrounds. Therefore, if you have a transparent background, you should go with a PNG image instead. It will preserve the quality of the background much better.
Furthermore, you need to think about the file size of the images with which you are working. If you want to have the smallest file size possible, and maximize your space, then you should probably go with JPG images. They traditionally use a 10:1 compression ratio.
While PNG images are higher quality, they are also much larger once the compression image is done. While they are still significantly smaller than the original file size, you will not be able to fit as many of them on the device.
Photography or Graphics
You should consider the quality of the graphics as well. Photographers tend to use JPG images since they need to store more images on their devices. They need a smaller file size to fit as many images as possible. On the other hand, if you have an image with a lot of sharp lines and fine details, or if you have an image that has a lot of text, you need to preserve the definition of the file. In that case, you should go with a PNG image instead.
So Which Should You Choose?
In the end, there are a lot of factors that you need to think about carefully as you try to decide which compression option you want to use and which file type is best for your needs.