Verify webp files are not processed with exiftool
This commit is contained in:
parent
2165a24974
commit
3a98960c26
1 changed files with 11 additions and 0 deletions
|
@ -30,4 +30,15 @@ test "apply exiftool filter" do
|
|||
assert String.match?(exif_original, ~r/GPS/)
|
||||
refute String.match?(exif_filtered, ~r/GPS/)
|
||||
end
|
||||
|
||||
test "verify webp files are skipped" do
|
||||
upload = %Pleroma.Upload{
|
||||
name: "sample.webp",
|
||||
content_type: "image/webp",
|
||||
path: Path.absname("/dev/null"),
|
||||
tempfile: Path.absname("/dev/null")
|
||||
}
|
||||
|
||||
assert Filter.Exiftool.filter(upload) == {:ok, :noop}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue