Add resizing filter to make sure pictures are not too big
Closes #810 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -60,9 +60,11 @@ defmodule Mobilizon.Web.Upload do
|
||||
tempfile: String.t(),
|
||||
content_type: String.t(),
|
||||
path: String.t(),
|
||||
size: integer()
|
||||
size: integer(),
|
||||
width: integer(),
|
||||
height: integer()
|
||||
}
|
||||
defstruct [:id, :name, :tempfile, :content_type, :path, :size]
|
||||
defstruct [:id, :name, :tempfile, :content_type, :path, :size, :width, :height]
|
||||
|
||||
@spec store(source, options :: [option()]) :: {:ok, map()} | {:error, any()}
|
||||
def store(upload, opts \\ []) do
|
||||
|
||||
Reference in New Issue
Block a user