Add support for converting from svg to other image types

This commit is contained in:
Cody Robibero
2024-02-28 09:56:02 -07:00
parent 4f0f364ac9
commit c5e723bccd
5 changed files with 50 additions and 9 deletions
+1 -2
View File
@@ -11,7 +11,6 @@ using System.Security.Cryptography;
using System.Threading;
using System.Threading.Tasks;
using Jellyfin.Api.Attributes;
using Jellyfin.Api.Constants;
using Jellyfin.Api.Helpers;
using MediaBrowser.Common.Api;
using MediaBrowser.Common.Configuration;
@@ -1993,7 +1992,7 @@ public class ImageController : BaseJellyfinApiController
{
if (format.HasValue)
{
return new[] { format.Value };
return [format.Value];
}
return GetClientSupportedFormats();