Merge pull request #3445 from crobibero/invalid-image

catch skia errors when getting image dimensions
pull/3454/head
dkanada 5 years ago committed by GitHub
commit fc722a612e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1894,9 +1894,19 @@ namespace Emby.Server.Implementations.Library
}
}
ImageDimensions size = _imageProcessor.GetImageDimensions(item, image);
image.Width = size.Width;
image.Height = size.Height;
try
{
ImageDimensions size = _imageProcessor.GetImageDimensions(item, image);
image.Width = size.Width;
image.Height = size.Height;
}
catch (Exception ex)
{
_logger.LogError(ex, "Cannnot get image dimensions for {0}", image.Path);
image.Width = 0;
image.Height = 0;
continue;
}
try
{

Loading…
Cancel
Save