chiark / gitweb /
update: strip all metadata from PNGs
authorHans-Christoph Steiner <hans@eds.org>
Wed, 13 Dec 2017 10:51:34 +0000 (11:51 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 14 Dec 2017 15:57:22 +0000 (16:57 +0100)
commit387eebc4d69e0c89fd27a0bbe20ab31a5ea4be20
tree3905c6d9aa92b8a3d3757a6cad37692a2ea86de8
parent67b9514c5a830159e6cc39a6ba180cb2774635b9
update: strip all metadata from PNGs

This strips metadata and optimizes the compression of all PNGs copied
from the app's source repo as well as all the icons extracted from the
APKs.  There have been exploits delivered via image metadata, and
F-Droid isn't using it all, so its best to just remove it.

This unfortunately uncompresses and recompresses the files.  Luckily,
that's a lossless procedure with PNGs, and we might end up with
smaller files.  The only tool I could find that strips without
changing the image data is exiftool, but that is written in Perl.
fdroidserver/update.py