Skip to content

Commit

Permalink
Support .svgz image #2066
Browse files Browse the repository at this point in the history
  • Loading branch information
d2phap committed Jan 30, 2025
1 parent f30e3c6 commit 10be73e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10be73e

Please sign in to comment.