From 10be73e1ff931e8d6a3e641a0dc861ecc142b982 Mon Sep 17 00:00:00 2001 From: Phap Dieu Duong Date: Thu, 30 Jan 2025 15:19:38 +0700 Subject: [PATCH] Support .svgz image #2066 --- .../Components/ImageGlass.Base/Photoing/Codecs/PhotoCodec.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Components/ImageGlass.Base/Photoing/Codecs/PhotoCodec.cs b/Source/Components/ImageGlass.Base/Photoing/Codecs/PhotoCodec.cs index 3303e2e75..396766d55 100644 --- a/Source/Components/ImageGlass.Base/Photoing/Codecs/PhotoCodec.cs +++ b/Source/Components/ImageGlass.Base/Photoing/Codecs/PhotoCodec.cs @@ -1356,6 +1356,11 @@ private static MagickReadSettings ParseSettings(CodecReadOptions? options, bool settings.Format = MagickFormat.Rsvg; settings.BackgroundColor = MagickColors.Transparent; } + else if (ext.Equals(".SVGZ", StringComparison.OrdinalIgnoreCase)) + { + settings.Format = MagickFormat.Svgz; + settings.BackgroundColor = MagickColors.Transparent; + } else if (ext.Equals(".JP2", StringComparison.OrdinalIgnoreCase)) { settings.SetDefines(new Jp2ReadDefines