调整图像大小而不会丢失EXIF数据? [英] Resizing images without losing EXIF data?

查看:185
本文介绍了调整图像大小而不会丢失EXIF数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个小脚本,该脚本将从FTP服务器下载TIFF图像,然后调整它们的大小并将其另存为JPG.

I've written a little script that will download TIFF images from an FTP server, then resizes them and saves them as JPGs.

到目前为止,还不错,但是在压缩步骤(下面列出)中,我从文件中丢失了EXIF数据.

So far, so good, but in the compression step (listed below), I lose the EXIF data from the file.

是否存在一种优雅的方法来进行转换/调整大小/压缩而又不丢失EXIF数据?

Is there an elegant way to do the conversion / resizing / compression without losing EXIF data?

convert -limit memory 32 -limit map 64 sourcefile.tif -units PixelsPerInch -density 72 -quality 90 -resize 1500 targetfile.jpg 

有什么想法吗?

推荐答案

通过将其更新到最新版本,修复了TIFF EXIF错误,ImageMagick 6.6.9-6根据@palmaceous进行了出色的工作.

By updating it to the newest version, the TIFF EXIF bug was fixed, ImageMagick 6.6.9-6 Glorious works according to @palmaceous.

(我添加此答案的原因是我没有注意到问题的作者已经回答了该问题.也有人会想念它.)

(I am adding this answer because I didn't notice the question was answered by the author of the question already. Felt someone would miss it as well.)

这篇关于调整图像大小而不会丢失EXIF数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆