fix "exiftool not support svg files' #422

Closed
ihor wants to merge 4 commits from ihor:stable into stable
Showing only changes of commit 064a68793f - Show all commits

Оновити 'lib/pleroma/upload/filter/exiftool.ex'
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed

ihor 2023-01-05 14:50:26 +00:00

View file

@ -15,7 +15,6 @@ defmodule Pleroma.Upload.Filter.Exiftool do
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{content_type: "image/svg+xml"}), do: {:ok, :noop}
def filter(%Pleroma.Upload{tempfile: file, content_type: "image" <> _}) do
try do
case System.cmd("exiftool", ["-overwrite_original", "-gps:all=", file], parallelism: true) do