build: bump exif_stripper to 0.1.3

0.1.3 strips GPS data from XMP (including DJI drone positions), reads
TIFF descriptions, and no longer reads whole images into memory.
This commit is contained in:
Lain Soykaf 2026-10-28 11:35:47 +04:00
commit 55bf6b851d
No known key found for this signature in database
6 changed files with 18 additions and 3 deletions

BIN
test/fixtures/dji_gps.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
test/fixtures/xmp_gps.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

@ -26,6 +26,21 @@ defmodule Pleroma.Upload.Filter.Exif.StripLocationTest do
end
end
test "strips GPS data from XMP, including DJI drone positions" do
for fixture <- ["xmp_gps.jpg", "dji_gps.jpg"] do
upload = upload_copy(fixture, "image/jpeg")
assert exiftool_xmp(upload.tempfile) =~ "GPSLatitude"
assert StripLocation.filter(upload) == {:ok, :filtered}
refute exiftool_xmp(upload.tempfile) =~ ~r/GPS|AbsoluteAltitude/
end
end
defp exiftool_xmp(path) do
{output, 0} = System.cmd("exiftool", ["-m", "-s", "-xmp:all", path])
output
end
test "keeps other EXIF data in HEIC" do
upload = upload_copy("strip_location_gps.heic", "image/heic")