#584528 dh_compress: Optionally optimise PNG, SVG and XML files

#584528#5
Date:
2010-06-04 10:10:49 UTC
From:
To:
I saw that the Ubuntu Live CD (Ubuntu is downstream from Debian) had a
lot of wasted space in its PNG and SVG images, and XML files. The
latest version of the Live CD, codename Lucid Lynx, stands to save 11
MB (out of 699) from PNG and SVG optimisations alone. However, some
packages break horrendously when their XML files are stripped of
whitespace.

I have proof-of-concept code [1] that deconstructs the Ubuntu Live CD
and attempts to optimise its PNG and SVG images. Ubuntu suggested that
I file a bug on debhelper to have this added to the dh_compress
debhelper so that all packages could benefit from this optimisation.
Basically, I want to do this:

dh_compress --xml .xml,.glade,.ui