URL:
  <http://gna.org/bugs/?11676>

                 Summary: Optimizing PNG images
                 Project: Battle for Wesnoth
            Submitted by: None
            Submitted on: Tuesday 05/13/2008 at 11:38 CEST
                Category: Feature Request
                Severity: 1 - Wish
                Priority: 5 - Normal
              Item Group: Graphics
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: [EMAIL PROTECTED]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.4.2
        Operating System: All

    _______________________________________________________

Details:

I noticed that most of the PNG images in wesnoth could be more optimized
using advdef to optimize the deflate compression and save another 1-4%. Note
that advdef have to be performed after optipng (which appears to have been
already run with some settings which don't remove informations useful to
artists) or you could loose some compression advantages.

This is what I am doing (note the multiple runs of advdef: sometimes lower
compression levels compress better):

find . -name "*.png" -exec advdef -z -4 '{}' \;
find . -name "*.png" -exec advdef -z -3 '{}' \;
find . -name "*.png" -exec advdef -z -2 '{}' \;
find . -name "*.png" -exec advdef -z -1 '{}' \;

Note that after using advdef the --enable-optipng configure option will be
probably useless since probably will not shrunk anymore the images (optipng
performs a good job with the internal structure of the PNG but is not very
good in the last stage of deflate compression; advdef acts only on the
deflate compression, so if optipng is run after, it could improve the PNG
structure, but probably the final size will be bigger since it has a weaker
final deflate compressor).




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?11676>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to