gpt4 book ai didi

ruby - 如何在 Ruby 中更新图片文件的 EXIF 标签?

转载 作者:数据小太阳 更新时间:2023-10-29 07:06:24 24 4
gpt4 key购买 nike

标题说明一切。

最佳答案

我正在使用 MiniExiftool,它是 Perl 的 Exiftool 的 ruby​​ 接口(interface)。

用法:

exif = MiniExiftool.new(file_path)
exif.date_time_original = Time.now
exif["captionextract"] = "This is my new caption"
exif.save

还有:https://github.com/janfri/multi_exiftool

关于ruby - 如何在 Ruby 中更新图片文件的 EXIF 标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2662814/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com