mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-12 09:13:00 +01:00
Improved image processing
This commit is contained in:
parent
8b7effd6ff
commit
e76ff3bf16
@@ -1,4 +1,5 @@
|
||||
using MediaBrowser.Common.Logging;
|
||||
using System.Drawing.Imaging;
|
||||
using MediaBrowser.Common.Logging;
|
||||
using MediaBrowser.Common.Net;
|
||||
using MediaBrowser.Common.Net.Handlers;
|
||||
using MediaBrowser.Controller;
|
||||
@@ -128,6 +129,11 @@ namespace MediaBrowser.Api.HttpHandlers
|
||||
return null;
|
||||
}
|
||||
|
||||
if (Kernel.Instance.ImageProcessors.Any(i => i.RequiresTransparency))
|
||||
{
|
||||
return MimeTypes.GetMimeType(".png");
|
||||
}
|
||||
|
||||
return MimeTypes.GetMimeType(await GetImagePath().ConfigureAwait(false));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user