Fix #150: make use of color space assigned with image

This commit is contained in:
Paddy Xu
2017-12-09 14:37:53 +02:00
parent d481bcdceb
commit b1e5ce0172

View File

@@ -30,6 +30,7 @@ namespace QuickLook.Plugin.ImageViewer.AnimatedImage
{ {
using (var image = new MagickImage(path)) using (var image = new MagickImage(path))
{ {
image.AddProfile(ColorProfile.SRGB);
image.Density = new Density(Math.Floor(image.Density.X), Math.Floor(image.Density.Y)); image.Density = new Density(Math.Floor(image.Density.X), Math.Floor(image.Density.Y));
image.AutoOrient(); image.AutoOrient();