Hello all, yesterday while browsing bugs I stumbled upon this one suggesting to re-compress (without quality loss) the images in Firefox to reduce the installer size:
https://bugzilla.mozilla.org/show_bug.cgi?id=631392 I've followed a simpler procedure by recompressing all PNG files in the gaia directory with a 'optipng -o9 --strip all' command followed by 'advpng -4 -z' then rebuilt the project. The resulting userdata.img file had shrunk by ~1.7MiB or roughly ~4%. Since the improvement is small but non-trivial I wanted to hear if there was interest into applying this kind of re-compression to our assets. I haven't opened a ticket on this topic but if there's interest I'll do it; I guess this should include adding a properly written script for re-compressing files and documentation in Gaia's MDN pages on how to use it and what workflow to follow when adding new images or modifying existing ones. Alternatively one could image adding a compression step at build-time but this could significantly slow down the build process as well as add more tools to the build dependencies. Gabriele _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
