{ "name": "exiv2", "version": "0.28.9", "summary": "Exiv2: reads and writes the Exif, IPTC, XMP and ICC metadata of photos (JPEG, PNG, TIFF, raw formats, HEIF, AVIF)", "category": "tool", "license": "GPL-2.0-or-later", "homepage": "https://exiv2.org/", "source": { "url": "https://deb.debian.org/debian/pool/main/e/exiv2/exiv2_0.28.9+dfsg.orig.tar.xz", "sha256": "f03f61788c2ca563f844a21f3011dbc4b7a9fe22ba5db9d6bf340462ce7e71b7" }, "watch": {"kind": "index", "url": "https://deb.debian.org/debian/pool/main/e/exiv2/", "regex": "exiv2_([0-9]+(?:\\.[0-9]+)+)\\+dfsg\\.orig\\.tar\\.xz"}, "deps": [ "expat", "zlib", "brotli" ], "env_packages": [], "static": true, "nss": true, "check": "t=$(mktemp -d) && bin/exiv2 --version > \"$t/v\" && has '^exiv2 0.28.9' < \"$t/v\" && python3 -c 'import zlib, struct, sys; ch = lambda t, d: struct.pack(\">I\", len(d)) + t + d + struct.pack(\">I\", zlib.crc32(t + d)); raw = b\"\".join(b\"\\0\" + b\"\".join(bytes([x * 16, y * 16, 128]) for x in range(16)) for y in range(16)); open(sys.argv[1], \"wb\").write(b\"\\x89PNG\\r\\n\\x1a\\n\" + ch(b\"IHDR\", struct.pack(\">IIBBBBB\", 16, 16, 8, 2, 0, 0, 0)) + ch(b\"IDAT\", zlib.compress(raw)) + ch(b\"IEND\", b\"\"))' \"$t/a.png\" && bin/exiv2 -M'set Exif.Image.Artist Ascii bvs-artist' -M'set Exif.Image.Make Ascii QNAP' -M'set Xmp.dc.title lang=x-default BVS title' -M'set Iptc.Application2.Caption bvs caption' \"$t/a.png\" && bin/exiv2 -pa \"$t/a.png\" > \"$t/all\" 2>&1 && has -E '^Exif\\.Image\\.Artist +Ascii +[0-9]+ +bvs-artist$' < \"$t/all\" && has -E '^Xmp\\.dc\\.title +LangAlt +[0-9]+ +lang=\"x-default\" BVS title$' < \"$t/all\" && has -E '^Iptc\\.Application2\\.Caption +String +[0-9]+ +bvs caption$' < \"$t/all\" && bin/exiv2 -pS \"$t/a.png\" | has 'IHDR' && bin/exiv2 -d a \"$t/a.png\" && ! bin/exiv2 -pa \"$t/a.png\" 2> /dev/null | has bvs-artist && echo 'exiv2 0.28.9: Exif, XMP and IPTC tags written into a PNG, read back with their types, its chunks listed, then deleted'" }