我可以更改JPEG属性 - >详细信息 - > C#标签 [英] Can I Change JPEG Properties -> Details -> Tags with C#

查看:68
本文介绍了我可以更改JPEG属性 - >详细信息 - > C#标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您使用的是Windows,并且右键单击JPEG文件,请选择属性,然后单击详细信息选项卡,您可以添加/删除/更新标签。



您还可以使用利用Shell的PowerShell脚本检索这些标签,并调用 IShellFolder2 :: GetDetailsOf()



我真正想要的是什么但是,是一种从我的C#/ ASP.NET应用程序添加/删除/更新这些标记的方法。因此,当用户将他们的照片上传到网络应用程序时,它会被标记为超级特殊密码,用于识别我们的数字资产管理(第三方)软件的照片,以及我们的PowerShell脚本(内部),用于查找目录那些标签。



非常感谢任何帮助。

谢谢

If you are using Windows, and if you right click on a JPEG file, choose Properties, and click the Details tab, you can add/remove/update "Tags".

You can also retrieve those tags with a PowerShell script that exploits the Shell, calling IShellFolder2::GetDetailsOf().

What I really want though, is a way to add/remove/update those tags from my C#/ASP.NET application. So as a user uploads their photo into the web app, it is tagged with a super special secret code that identifies the photo to our Digital Asset Management (third party) software, and our PowerShell scripts (in house) that climb the directory looking for those tags.

Any help is much appreciated.
Thanks

推荐答案

它被称为EXIF数据,这里有一个很好的库来处理它: ExifLibrary for .NET [ ^ ]
It's called EXIF data, and there is a good library to handle it here: ExifLibrary for .NET[^]


这篇关于我可以更改JPEG属性 - >详细信息 - > C#标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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