我有一张jpeg格式的照片似乎带有滤镜,无论我使用何种查看器,图像都比应该更暗。我没有意识到jpeg格式可以包含这样的东西,但它似乎必须包含。如何在C#中剥离或忽略调整图像大小时的滤镜? 我也不介意解释一下这是如何发生的。这张图片是由用户提供的,但我不知道如何添加这个滤镜(我没有意识到jpeg格式支持这样的功能)。
exiftool
,执行命令为exiftool -ICC_Profile= photo.jpg
。exiftool -icc_profile -b -w icc photo.jpg
。
这将创建photo.icc
。
使用exiftool photo.icc
检查后发现该配置文件为广色域。...
display profile (AdobeRGB):
Profile CMM Type : KCMS
Profile Version : 2.1.0
Profile Class : Display Device Profile
Color Space Data : RGB
Profile Connection Space : XYZ
Profile Date Time : 1998:12:01 18:58:21
Profile File Signature : acsp
Primary Platform : Microsoft Corporation
CMM Flags : Not Embedded, Independent
Device Manufacturer : KODA
Device Model : ROMM
Device Attributes : Reflective, Glossy, Positive, Color
Rendering Intent : Perceptual
Connection Space Illuminant : 0.9642 1 0.82487
Profile Creator : KODA
Profile ID : 0
Profile Copyright : Copyright (c) Eastman Kodak Company, 1999, all rights reserved.
Profile Description : ProPhoto RGB
Media White Point : 0.9642 1 0.82489
...
Red Matrix Column : 0.79767 0.28804 0
Green Matrix Column : 0.13519 0.71188 0
Blue Matrix Column : 0.03134 9e-005 0.82491
Device Mfg Desc : KODAK
Device Model Desc : Reference Output Medium Metric(ROMM)
...