Android ImageFormat size comparison

109 views Asked by At

Is there any comparison as to the size in memory or on disk of the various ImageFormat types available on Android?

I'm looking for the lowest size format (or alternatively the most compression) with little regard to image quality. I see the JPEG and HEIC formats are the only ones with the word "compressed" so I'd assume the lowest footprint would use one of these, but I'm not seeing any info that would allow me to compare these (or the potential other formats) with regard to memory size.

I was thinking to try generating one of each format and comparing, but I see no easy way to capture or convert to the vast majority of the types listed. For example, using the CameraX ImageAnalysis use case, it seems I can only get images in YUV_420_888 format. There are a few 3rd party or SO answers that could potentially convert to a few other formats, but I'm not seeing any easy way to compare these formats to compare the inherent sizes of each.

0

There are 0 answers