【发布时间】:2021-11-11 18:13:15
【问题描述】:
我在使用保存时收到错误TypeError: 'bytes' object cannot be interpreted as an integer,如何才能使它正确?
我想保存在同一张图片中,而不是创建一个新的。
from iptcinfo3 import IPTCInfo
import sys
imagename = 'horse.jpg'
info = IPTCInfo(imagename)
info['keywords'] = 'horse', 'brown', 'animal', 'nature'
info.save()
如何添加“字节”? Documentation 什么都没说?
【问题讨论】:
-
将错误的完整回溯显示为问题中格式正确的文本。
标签: python image image-processing iptc iptcinfo