projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
369581d
)
Exiftool also cannot strip from heic files.
author
Mark Felder
<feld@feld.me>
Sat, 20 Feb 2021 20:28:21 +0000
(14:28 -0600)
committer
Mark Felder
<feld@feld.me>
Sat, 20 Feb 2021 20:29:35 +0000
(14:29 -0600)
lib/pleroma/upload/filter/exiftool.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/upload/filter/exiftool.ex
b/lib/pleroma/upload/filter/exiftool.ex
index a03b32ae4357cb2345d99344dc055538a12c628f..a2bfbbf612c92b590e70558db3329c9a2abeadf3 100644
(file)
--- a/
lib/pleroma/upload/filter/exiftool.ex
+++ b/
lib/pleroma/upload/filter/exiftool.ex
@@
-11,7
+11,8
@@
defmodule Pleroma.Upload.Filter.Exiftool do
@spec filter(Pleroma.Upload.t()) :: {:ok, any()} | {:error, String.t()}
- # webp is not compatible with exiftool at this time
+ # Formats not compatible with exiftool at this time
+ def filter(%Pleroma.Upload{content_type: "image/heic"}), do: {:ok, :noop}
def filter(%Pleroma.Upload{content_type: "image/webp"}), do: {:ok, :noop}
def filter(%Pleroma.Upload{tempfile: file, content_type: "image" <> _}) do