{ "name": "jpegoptim", "version": "1.4.7", "summary": "jpegoptim: optimises JPEG files losslessly or to a target quality or size, and strips their metadata", "category": "tool", "license": "GPL-3.0-or-later", "homepage": "https://www.kokkonen.net/tjko/projects.html", "source": { "url": "https://deb.debian.org/debian/pool/main/j/jpegoptim/jpegoptim_1.4.7.orig.tar.gz", "sha256": "9d2a13b7c531d122f360209422645206931c74ada76497c4aeb953610f0d70c1" }, "watch": {"kind": "index", "url": "https://deb.debian.org/debian/pool/main/j/jpegoptim/", "regex": "jpegoptim_([0-9]+(?:\\.[0-9]+)+)\\.orig\\.tar\\.gz"}, "deps": [ "libjpeg-turbo" ], "env_packages": [], "static": true, "nss": false, "check": "t=$(mktemp -d) && bin/jpegoptim --version | has '^jpegoptim v1.4.7' && python3 -c 'import sys; w = h = 128; open(sys.argv[1], \"wb\").write(b\"P6 %d %d 255\\n\" % (w, h) + bytes(v for y in range(h) for x in range(w) for v in ((x * 2) % 256, (y * 2) % 256, (x + y) % 256)))' \"$t/a.ppm\" && bin/cjpeg -quality 98 -outfile \"$t/a.jpg\" \"$t/a.ppm\" && bin/wrjpgcom -comment 'bvs comment' \"$t/a.jpg\" > \"$t/c.jpg\" && s0=$(stat -c %s \"$t/c.jpg\") && cp \"$t/c.jpg\" \"$t/l.jpg\" && bin/jpegoptim -q -o \"$t/l.jpg\" && [ \"$(stat -c %s \"$t/l.jpg\")\" -le \"$s0\" ] && bin/rdjpgcom \"$t/l.jpg\" | has 'bvs comment' && bin/jpegoptim -q -o -m60 --strip-all \"$t/c.jpg\" && s1=$(stat -c %s \"$t/c.jpg\") && [ \"$s1\" -lt \"$s0\" ] && ! bin/rdjpgcom \"$t/c.jpg\" | has 'bvs comment' && bin/djpeg -pnm -outfile \"$t/d.ppm\" \"$t/c.jpg\" && [ \"$(head -c 2 \"$t/d.ppm\")\" = P6 ] && echo \"jpegoptim 1.4.7: a JPEG optimised losslessly with its comment kept, then to quality 60 without metadata ($s0 to $s1 bytes) and decoded\"" }