如何在不重新压缩JPEG的情况下编写Exif标头,在.NET中? [英] How can I write an Exif header without recompressing the JPEG, in .NET?

查看:80
本文介绍了如何在不重新压缩JPEG的情况下编写Exif标头,在.NET中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 JPEG 图片,我想设置 Exif 标题为(特别是作者)。

I have a JPEG image that I want to set an Exif header to (particularly, Author).

In。 NET,我可以使用GetPropertyItem和SetPropertyItem相对容易地做到这一点,但为了将更改保存到实际的.JPG文件,我需要保存它,它基本上重新压缩图像。

In .NET, I can do this relatively easy using GetPropertyItem and SetPropertyItem, but in order for that change to be persisted to the actual .JPG file, I need to Save it, which basically recompresses the image.

有没有办法在没有重新压缩的情况下做到这一点?

Is there any way to do this without recompressing?

推荐答案

我相信 exiv2net 库(exiv2上的.NET包装器)可能就是您所期待的for。

I believe exiv2net library (a .NET wrapper on top of exiv2) may be what you're looking for.

这篇关于如何在不重新压缩JPEG的情况下编写Exif标头,在.NET中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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