Change EXIF data on JPEG without altering picture

前端 未结 1 1596
花落未央
花落未央 2020-12-09 12:55

I change the exif on a jpeg using piexif to read and write exif data, which seems to work fine. The issue is when I read and write the jpeg, even tho I don\'t change the byt

相关标签:
1条回答
  • 2020-12-09 13:33

    https://piexif.readthedocs.io/en/latest/functions.html

    exif_dict = piexif.load(path)
    new_exif = adjust_exif(exif_dict)
    exif_bytes = piexif.dump(new_exif)
    piexif.insert(exif_bytes, path)
    
    0 讨论(0)
提交回复
热议问题