mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Merge pull request #11127 from crobibero/skia-blurhash
Don't attempt to calculate blurhash for svg
This commit is contained in:
commit
1e964c9bc2
@ -188,7 +188,8 @@ public class SkiaEncoder : IImageEncoder
|
||||
ArgumentException.ThrowIfNullOrEmpty(path);
|
||||
|
||||
var extension = Path.GetExtension(path.AsSpan()).TrimStart('.');
|
||||
if (!SupportedInputFormats.Contains(extension, StringComparison.OrdinalIgnoreCase))
|
||||
if (!SupportedInputFormats.Contains(extension, StringComparison.OrdinalIgnoreCase)
|
||||
|| extension.Equals(SvgFormat, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
_logger.LogDebug("Unable to compute blur hash due to unsupported format: {ImagePath}", path);
|
||||
return string.Empty;
|
||||
|
Loading…
Reference in New Issue
Block a user