简体   繁体   中英

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.

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).

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

Also I would check if the following display the image correctly.
https://github.com/liuziangexit/HEIF-Utility/tree/master/HEIF%20Utility%20English

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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