Appwrite. Consts. ImageFormat
(appwrite v1.0.0)
View Source
Image output formats supported by the Appwrite Storage preview endpoint.
| Format | Value |
|---|---|
| JPG | "jpg" |
| JPEG | "jpeg" |
| GIF | "gif" |
| PNG | "png" |
| WebP | "webp" |
Summary
Functions
Returns true when value is a valid image format, otherwise false.
Guard — returns true when value is a valid image format.
Returns {:ok, value} if valid, or {:error, "Invalid image format"}.
Returns value if valid. Raises ArgumentError otherwise.
Returns all valid image format values.
Functions
Returns true when value is a valid image format, otherwise false.
Guard — returns true when value is a valid image format.
Can be used in function heads:
def handle(v) when Elixir.Appwrite.Consts.ImageFormat.valid_value(v), do: :ok
Returns {:ok, value} if valid, or {:error, "Invalid image format"}.
Returns value if valid. Raises ArgumentError otherwise.
@spec values() :: [String.t()]
Returns all valid image format values.