projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05187d4
)
Error in Filter.Exiftool if exiftool not found
author
Roman Chvanikov
<chvanikoff@pm.me>
Sat, 11 Jul 2020 15:11:23 +0000
(18:11 +0300)
committer
Roman Chvanikov
<chvanikoff@pm.me>
Sat, 11 Jul 2020 15:11:23 +0000
(18:11 +0300)
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 94622acd0910084017b7174ba102ec6be4f4a012..6a40e152f95e2bcdf770f3abe85dcf265d10278e 100644
(file)
--- a/
lib/pleroma/upload/filter/exiftool.ex
+++ b/
lib/pleroma/upload/filter/exiftool.ex
@@
-14,11
+14,10
@@
defmodule Pleroma.Upload.Filter.Exiftool do
def filter(%Pleroma.Upload{tempfile: file, content_type: "image" <> _}) do
if Pleroma.Utils.command_available?("exiftool") do
System.cmd("exiftool", ["-overwrite_original", "-gps:all=", file], parallelism: true)
+ :ok
else
- Logger.warn("exiftool is not available, filter #{__MODULE__} skipped")
+ {:error, "exiftool command not found"}
end
-
- :ok
end
def filter(_), do: :ok