简体   繁体   English

magickimage.net(C#)转换格式时的图像饱和度?

[英]magickimage.net (C#) image saturation when converting format?

I tried to use magickimage.net (C#) to convert HEIC image files (from iPhone 7) to JPG format. 我试图使用magickimage.net(C#)将HEIC图像文件(来自iPhone 7)转换为JPG格式。

Using all the default values (see below), though it converts successfully -- however, when comparing the converted image, vs, if I copy the files from iPhone directly to my computer as JPG, I noticed the images converted from magickimage look more "pale", lacking vivid color (saturation, I would say). 使用所有默认值(请参见下文),尽管它可以成功转换-但是,在比较转换后的图像时,如果我将iPhone中的文件以JPG格式直接从iPhone复制到计算机上,我注意到从magickimage转换后的图像看起来更像是“苍白”,缺乏鲜艳的色彩(我想说是饱和的)。

Just wondering if anyone happens to know the right settings to improve that? 只是想知道是否有人碰巧知道正确的设置来改进它?

using (MagickImage image = new MagickImage(files[i]))
{
    image.Format = MagickFormat.Jpeg;
    image.Write(MyFile.ReplaceFileExtension(files[i], "jpg"));
}

Just a guess, most likely not apply the correct color profile. 仅凭猜测,很可能无法应用正确的颜色配置文件。

Check the image if it has Color properties ie. 检查图像是否具有颜色属性,即。 Table VII. 表。 Image Properties and Figure 1 in the Technical spec for HEIF is at: https://nokiatech.github.io/heif/technical.html 图像属性和HEIF技术规范中的图1位于: https ://nokiatech.github.io/heif/technical.html

Also I would check if the following display the image correctly. 另外,我将检查以下内容是否正确显示了图像。
https://github.com/liuziangexit/HEIF-Utility/tree/master/HEIF%20Utility%20English https://github.com/liuziangexit/HEIF-Utility/tree/master/HEIF%20Utility%20English

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM