aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Drawing.Skia/SkiaEncoder.cs
diff options
context:
space:
mode:
authorVasily <just.one.man@yandex.ru>2020-05-20 23:50:17 +0300
committerVasily <just.one.man@yandex.ru>2020-05-20 23:50:17 +0300
commit3fb4c1356c22c8be03855a161140c21eb395086b (patch)
tree0b39c0fea126af2ca7c9f9f52047f0db86336d86 /Jellyfin.Drawing.Skia/SkiaEncoder.cs
parent2b1ae7ac5834054866aa485b18f85f1793f7b8b4 (diff)
Make blurhash be computed during regular scans if it was not already computed
Diffstat (limited to 'Jellyfin.Drawing.Skia/SkiaEncoder.cs')
-rw-r--r--Jellyfin.Drawing.Skia/SkiaEncoder.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Jellyfin.Drawing.Skia/SkiaEncoder.cs b/Jellyfin.Drawing.Skia/SkiaEncoder.cs
index 99091ea57e..7ab0a54dfd 100644
--- a/Jellyfin.Drawing.Skia/SkiaEncoder.cs
+++ b/Jellyfin.Drawing.Skia/SkiaEncoder.cs
@@ -246,6 +246,8 @@ namespace Jellyfin.Drawing.Skia
throw new FileNotFoundException("File not found", path);
}
+ // Use 4 vertical and 4 horizontal components of DCT of the image.
+ // See more at https://github.com/woltapp/blurhash/#how-do-i-pick-the-number-of-x-and-y-components
return BlurHashEncoder.Encode(4, 4, path);
}