Extract blurhash into it's own filter

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-08-12 10:29:40 +02:00
parent 1280b66f41
commit 53a3dc6fab
4 changed files with 38 additions and 21 deletions

View File

@@ -62,9 +62,10 @@ defmodule Mobilizon.Web.Upload do
path: String.t(),
size: integer(),
width: integer(),
height: integer()
height: integer(),
blurhash: String.t()
}
defstruct [:id, :name, :tempfile, :content_type, :path, :size, :width, :height]
defstruct [:id, :name, :tempfile, :content_type, :path, :size, :width, :height, :blurhash]
@spec store(source, options :: [option()]) :: {:ok, map()} | {:error, any()}
def store(upload, opts \\ []) do