However, I noticed that with --encode_quality 100, images are smaller than expected. According to the OpenCV Docs, lossless compression is only used if IMWRITE_WEBP_QUALITY is above 100. I verified that using --encode_quality 101 generates images with larger file size.
The README should probably be updated to make users aware of this subtle difference.
In the README it says
However, I noticed that with
--encode_quality 100
, images are smaller than expected. According to the OpenCV Docs, lossless compression is only used ifIMWRITE_WEBP_QUALITY
is above 100. I verified that using--encode_quality 101
generates images with larger file size.The README should probably be updated to make users aware of this subtle difference.