我有一张jpeg格式的照片,里面好像有滤镜。根据我使用的查看器,图像看起来会比正常情况下更暗。我没有意识到jpegs可以包含这样的东西,但它似乎必须包含。
原件:
调整大小(请注意,它变暗了):
在C#中调整图像大小时,如何剥离或忽略滤镜?我也不介意解释一下这是如何发生的。图像是由用户提供的,但我不知道这个过滤器是如何添加到它中的(我不知道jpeg格式支持这样的内容)。
发布于 2019-07-24 04:33:17
使用命令exiftool
时,要执行的命令应该是exiftool -ICC_Profile= photo.jpg
。
实际上,在这样做之前,我确实使用命令exiftool -icc_profile -b -w icc photo.jpg
在删除之前提取了配置文件(exiftool会创建一个备份)。这将创建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)
...
然而,在大多数情况下,删除配置文件并不会使其看起来更好;正确的方法是对图像数据应用配置文件校正(如将其从AdobeRGB转换为sRGB)。也许你想看看How can one perform color transforms with ICC profiles on a set of arbitrary pixel values (not on an image data structure)?。
一般来说,使用AdobeRGB配置文件的照片在非广域显示器(sRGB)上看起来有点沉闷,而且一些程序不能正确应用配置文件(如Windows7内置图像查看器)。一般来说,除非使用ICCv4配置文件(正在开发中),否则火狐会做得很好。
但正如你所要求的(以及人们是否能看到不同之处),这是一张没有个人资料的照片(顺便说一句:我用宽域显示查看了你的图像,所以第一张看起来不错):
https://stackoverflow.com/questions/26111530
复制相似问题