Best image format lossless

Hello,
What is the best image format to choose in OpenCV to transfert rapidly image on the web without loss.
Thank you

PNG is widely supported and is lossless, so it might be your best bet, but as I recall it is slow/expensive to encode. If encoding performance is important and it doesn’t have to be truly lossless you might opt for a high quality level JPEG - you can get really good visual results this way and still achieve decent compression. Encoding will be faster, I think.

PNG is probably the most valuable image format currently on the market besides WebP. … WebP offers 26% smaller file sizes than PNG , while still providing transparency and the same quality. WebP loads faster (due to file size) than PNG images.

1 Like