mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-15 03:24:40 -04:00
Merge pull request #3757 from jellyfin/update_blurhashsharp
Update BlurHashSharp and set max size to 128x128 (cherry picked from commit ee3fae497c14493b8678f126c30580757044d7be) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
7402679a99
commit
0eb0b15b2a
@ -18,8 +18,8 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BlurHashSharp" Version="1.0.1" />
|
<PackageReference Include="BlurHashSharp" Version="1.1.0" />
|
||||||
<PackageReference Include="BlurHashSharp.SkiaSharp" Version="1.0.0" />
|
<PackageReference Include="BlurHashSharp.SkiaSharp" Version="1.1.0" />
|
||||||
<PackageReference Include="SkiaSharp" Version="1.68.3" />
|
<PackageReference Include="SkiaSharp" Version="1.68.3" />
|
||||||
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="1.68.3" />
|
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="1.68.3" />
|
||||||
<PackageReference Include="Jellyfin.SkiaSharp.NativeAssets.LinuxArm" Version="1.68.1" />
|
<PackageReference Include="Jellyfin.SkiaSharp.NativeAssets.LinuxArm" Version="1.68.1" />
|
||||||
|
@ -237,7 +237,8 @@ namespace Jellyfin.Drawing.Skia
|
|||||||
throw new ArgumentNullException(nameof(path));
|
throw new ArgumentNullException(nameof(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
return BlurHashEncoder.Encode(xComp, yComp, path);
|
// Any larger than 128x128 is too slow and there's no visually discernible difference
|
||||||
|
return BlurHashEncoder.Encode(xComp, yComp, path, 128, 128);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool HasDiacritics(string text)
|
private static bool HasDiacritics(string text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user