Patent attributes
Particular embodiments may access one or more images configured to be used for generating an artificial reality (AR) effect. For each image, one or more compressed images may be generated using different compression settings, respectively. For each compressed image, a quality score may be computed based on that compressed image and the associated image from which the compressed image is generated. For each image, a desired quality threshold may be determined, and an optimal compression setting for that image may be determined based on the desired quality threshold and quality scores associated with the one or more compressed images generated from that image, wherein the optimal compression setting corresponds to one of the plurality of different compression settings. Each of the one or more images may be compressed using the associated optimal compression setting to generate and output one or more optimally-compressed images.