[FileExplorer-Add-ons][SVG] Preprocess svg thumbnail before previewing (#18685)

* [FileExplorer-Add-ons][SVG Thumbnail] Preprocess svg thumbnail before previewing

same logic is usedas for preview handler

* Fix build
This commit is contained in:
Stefan Markovic
2022-06-12 14:20:23 +02:00
committed by GitHub
parent 9335705389
commit db881ceeb0
4 changed files with 9 additions and 4 deletions

View File

@@ -252,6 +252,13 @@ namespace Microsoft.PowerToys.ThumbnailHandler.Svg
using (var reader = new StreamReader(stream))
{
svgData = reader.ReadToEnd();
try
{
svgData = SvgPreviewHandlerHelper.AddStyleSVG(svgData);
}
catch (Exception)
{
}
}
}