This commit is contained in:
Lain Soykaf 2023-11-28 13:13:43 +04:00
parent da26964d2b
commit ccc2adee41

View file

@ -82,7 +82,7 @@ defmodule Pleroma.Upload.Filter.AnalyzeMetadata do
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),
{height, width} <- {Image.height(resized_image), Image.width(resized_image)},
max <- max(height, width),