Resized mm and nobody images are not optimised

Bug #854394 reported by François Marier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Libravatar (obsolete)
Fix Released
Medium
François Marier

Bug Description

The original SVG image exported to PNG is much more optimized than the resized PNGs:

$ ls -l mm/
...
5,8K jun 27 00:24 508.png
5,9K jun 27 00:24 509.png
5,9K jun 27 00:24 510.png
5,8K jun 27 00:24 511.png
4,4K jun 27 00:24 512.png

$ ls -l nobody/
...
19K jun 22 20:48 509.png
19K jun 22 20:48 510.png
19K jun 22 20:48 511.png
7,4K jun 22 21:20 512.png

Which means that the generate_all_sizes.sh script needs to change.

Perhaps it needs to script GIMP to export SVG images down to the right sized PNG file.

Also, it should run:

  pngnq -f -n 32 -s 3 nobody.png

to drop the palette down to 32 colours (5 bits) instead of 32 bits because it still looks just fine.

Revision history for this message
François Marier (fmarier) wrote :

Changing the color type might help as well:

  pngcrush -c 2

removes the alpha channel (for colour images that don't need transparency) and:

  pngcrush -c 0

removes the colour channel as well (for grayscale images).

Changed in libravatar:
status: Confirmed → Fix Committed
Changed in libravatar:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.