forked from AkkomaGang/akkoma
Error in Filter.Exiftool if exiftool not found
This commit is contained in:
parent
05187d497d
commit
45bd64e2a7
1 changed files with 2 additions and 3 deletions
|
@ -14,11 +14,10 @@ defmodule Pleroma.Upload.Filter.Exiftool do
|
||||||
def filter(%Pleroma.Upload{tempfile: file, content_type: "image" <> _}) do
|
def filter(%Pleroma.Upload{tempfile: file, content_type: "image" <> _}) do
|
||||||
if Pleroma.Utils.command_available?("exiftool") do
|
if Pleroma.Utils.command_available?("exiftool") do
|
||||||
System.cmd("exiftool", ["-overwrite_original", "-gps:all=", file], parallelism: true)
|
System.cmd("exiftool", ["-overwrite_original", "-gps:all=", file], parallelism: true)
|
||||||
else
|
|
||||||
Logger.warn("exiftool is not available, filter #{__MODULE__} skipped")
|
|
||||||
end
|
|
||||||
|
|
||||||
:ok
|
:ok
|
||||||
|
else
|
||||||
|
{:error, "exiftool command not found"}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def filter(_), do: :ok
|
def filter(_), do: :ok
|
||||||
|
|
Loading…
Reference in a new issue