Resize image in Python without losing EXIF data

后端 未结 11 2001
野的像风
野的像风 2020-12-02 19:06

I need to resize jpg images with Python without losing the original image\'s EXIF data (metadata about date taken, camera model etc.). All google searches about python and i

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 19:19

    Why not using ImageMagick?
    It is quite a standard tool (for instance, it is the standard tool used by Gallery 2); I have never used it, however it has a python interface as well (or, you can also simply spawn the command) and most of all, should maintain EXIF information between all transformation.

提交回复
热议问题