I have a app which stores an image file as an binary filed. when I tested it on odoo 14 (20211119) CE run in a docker container.The binary content was auto compress to an png format file. I have tested this for some times,I am sure about this.A elder version on local pc has no such phenomenon.
class XaserReport(models.Model):
_name = "xaser.report"
source_img = fields.Binary('Image', attachment=True)
Did you find anything useful to stop this? This is bothering me