mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-01-13 07:05:24 +08:00
Fix warning ColorProfile reference in ImageMagickProvider
QuickLook\QuickLook.Plugin\QuickLook.Plugin.ImageViewer\AnimatedImage\Providers\ImageMagickProvider.cs(112,35,112,52): warning CS0618: 'ColorProfile.SRGB' is obsolete: 'This property will be removed in the next major release. Use ColorProfiles.SRGB instead.'
Revert "Fix wwarning ColorProfile reference in ImageMagickProvider"
This reverts commit 649fd3a892.
Reapply "Fix wwarning ColorProfile reference in ImageMagickProvider"
This reverts commit 5e9dea6af313ec03c40b1f4dcaa461643a02d4f2.
This commit is contained in:
@@ -109,7 +109,7 @@ internal class ImageMagickProvider : AnimationProvider
|
||||
{
|
||||
if (mi.ColorSpace == ColorSpace.RGB || mi.ColorSpace == ColorSpace.sRGB || mi.ColorSpace == ColorSpace.scRGB)
|
||||
{
|
||||
mi.SetProfile(ColorProfile.SRGB);
|
||||
mi.SetProfile(ColorProfiles.SRGB);
|
||||
if (ContextObject.ColorProfileName != null)
|
||||
mi.SetProfile(new ColorProfile(ContextObject.ColorProfileName)); // map to monitor color
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user