#7626 Added handling for common FormatExceptions with Skia loading sv… (#9581)

Co-authored-by: Shadowghost <Shadowghost@users.noreply.github.com>
This commit is contained in:
JPVenson
2023-04-10 22:38:07 +03:00
committed by GitHub
parent 15c8854502
commit 3c22d5c970
2 changed files with 15 additions and 5 deletions

View File

@@ -1885,7 +1885,7 @@ namespace Emby.Server.Implementations.Library
catch (Exception ex)
{
_logger.LogError(ex, "Cannot get image dimensions for {ImagePath}", image.Path);
size = new ImageDimensions(0, 0);
size = default;
image.Width = 0;
image.Height = 0;
}