As a general rule, the higher the compression rate of a JPG photo, the worse the quality becomes. Image-editing programs specify compression as a quality value. For example, a value of 100 means 100% quality with no compression. However, the relationship between the compression level and file size is not linear. Even small amounts of compression that barely affect quality can significantly reduce the file size.
For example, the photo below has an uncompressed size of 22.16 MB with a resolution of 4,000 x 1,936 pixels. Even with the quality setting of 95 shown here, the file size is reduced to 1.25 MB as a result of the JPEG compression. For most cameras and smartphones, 95 is the standard quality setting for saving photos in JPG format.