Update BlurHashSharp to 1.0.1, remove workaround
This commit is contained in:
parent
f30b07130f
commit
a76cee7a95
|
@ -18,7 +18,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BlurHashSharp" Version="1.0.0" />
|
||||
<PackageReference Include="BlurHashSharp" Version="1.0.1" />
|
||||
<PackageReference Include="BlurHashSharp.SkiaSharp" Version="1.0.0" />
|
||||
<PackageReference Include="SkiaSharp" Version="1.68.1" />
|
||||
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="1.68.1" />
|
||||
|
|
|
@ -257,11 +257,6 @@ namespace Jellyfin.Drawing.Skia
|
|||
int xComp = Math.Min((int)xCompF + 1, 9);
|
||||
int yComp = Math.Min((int)yCompF + 1, 9);
|
||||
|
||||
// FIXME: current lib is bugged for xComp != yComp
|
||||
// remove when https://github.com/Bond-009/BlurHashSharp/pull/1 is merged
|
||||
int tmp = Math.Max(xComp, yComp);
|
||||
xComp = yComp = tmp;
|
||||
|
||||
return BlurHashEncoder.Encode(xComp, yComp, path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user