In order to reduce the size of images to be used in a website, I reduced the quality to 80-85%. This decreases the image size quite a bit, up to an extent.
To reduce
For me, gexiv2 works fine:
#!/usr/bin/python3 from gi.repository import GExiv2 exif = GExiv2.Metadata('8snmhp4sjd75vdr27gbadolc003i.jpg') exif.clear_exif() exif.clear_xmp() exif.save_file()
See also Exif manipulation library for python, which you linked, but didn't read all answers ;)