V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
tomcats
V2EX  ›  Python

请问怎么修改图片 exif 信息里面 主题 分级 标记 标注 这些属性呢

  •  
  •   tomcats · 2021-08-31 14:25:27 +08:00 · 1255 次点击
    这是一个创建于 962 天前的主题,其中的信息可能已经有所发展或是发生改变。

    7-M-V-W-HIH-MN-O-QXE5.png

    我用了 piexif 这个库去修改,貌似没有能修改这些属性的方法,这几个属性好像也不属于 exif 信息

    4 条回复    2021-09-01 19:40:39 +08:00
    2i2Re2PLMaDnghL
        1
    2i2Re2PLMaDnghL  
       2021-08-31 14:42:52 +08:00
    是不是来自文件系统的属性?尝试修改前后对比下 md5
    tomcats
        2
    tomcats  
    OP
       2021-08-31 14:51:21 +08:00
    @2i2Re2PLMaDnghL 改了以后 md5 有变化
    tiramice
        3
    tiramice  
       2021-08-31 16:58:16 +08:00
    这些是 IPTC metadata,py3exiv2 这个库可以修改,文档在 https://python3-exiv2.readthedocs.io/en/latest/tutorial.html
    tomcats
        4
    tomcats  
    OP
       2021-09-01 19:40:39 +08:00
    @tiramice 谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2622 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 01:48 · PVG 09:48 · LAX 18:48 · JFK 21:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.