This commit is contained in:
Lain Soykaf 2023-11-28 13:13:43 +04:00
parent da26964d2b
commit ccc2adee41
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ defp media_dimensions(file) do
end end
end end
defp vips_blurhash(image = %Vix.Vips.Image{}) do defp vips_blurhash(%Vix.Vips.Image{} = image) do
with {:ok, resized_image} <- Operation.thumbnail_image(image, 100), with {:ok, resized_image} <- Operation.thumbnail_image(image, 100),
{height, width} <- {Image.height(resized_image), Image.width(resized_image)}, {height, width} <- {Image.height(resized_image), Image.width(resized_image)},
max <- max(height, width), max <- max(height, width),