mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 10:19:07 +00:00
Implement SVGA MetaProvider
This commit is contained in:
@@ -37,7 +37,18 @@ internal class SvgaMetaProvider(string path) : IWebMetaProvider
|
||||
return _size;
|
||||
}
|
||||
|
||||
// TODO
|
||||
try
|
||||
{
|
||||
var svga = new SvgaPlayer();
|
||||
var fileStream = new FileStream(_path, FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||
|
||||
svga.LoadSvgaFileData(fileStream);
|
||||
return new Size(svga.StageWidth, svga.StageHeight);
|
||||
}
|
||||
catch
|
||||
{
|
||||
// That's fine, just return the default size.
|
||||
}
|
||||
|
||||
return new Size(800, 600);
|
||||
}
|
||||
|
Reference in New Issue
Block a user