aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/ImageProcessor.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-09-18 13:07:50 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-09-18 13:07:50 -0400
commit983c249d397a356b5fa770a2e2fe5df87b11f4d4 (patch)
treeb2769394f51e63eae055ad1d1de3b6fe152a1a2d /Emby.Drawing/ImageProcessor.cs
parentcdd79ec7e2fcea806be7a9b50764b1ad473d5970 (diff)
3.2.30.25
Diffstat (limited to 'Emby.Drawing/ImageProcessor.cs')
-rw-r--r--Emby.Drawing/ImageProcessor.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs
index c519d4e21..0363aa8df 100644
--- a/Emby.Drawing/ImageProcessor.cs
+++ b/Emby.Drawing/ImageProcessor.cs
@@ -736,7 +736,8 @@ namespace Emby.Drawing
{
var filename = (originalImagePath + dateModified.Ticks.ToString(UsCulture)).GetMD5().ToString("N");
- var outputPath = Path.Combine(_appPaths.ImageCachePath, "converted-images", filename + ".webp");
+ var cacheExtension = _mediaEncoder().SupportsEncoder("libwebp") ? ".webp" : ".png";
+ var outputPath = Path.Combine(_appPaths.ImageCachePath, "converted-images", filename + cacheExtension);
var file = _fileSystem.GetFileInfo(outputPath);
if (!file.Exists)