Page MenuHomePhabricator

Convert user.gif in Monobook to PNG format
Closed, InvalidPublic

Description

PNG version of user.gif

The user.gif file specified by Monobook is unnecessarily large. This PNG version is half the size. The file should be replaced and main.css updated to use it instead (a one-line change), along with any other GIFs hanging around that are larger than their PNG equivalents (this is not always the case).

It might also be a good idea for someone with commit access to look into running pngcrush on the existing PNGs in the skins directory (file icons, buttons, logos, etc). Many appear to be slightly larger than they need to be. Every little helps.

Ideally most skin images would be in a CSS sprite, but one thing at a time . . .


Version: unspecified
Severity: enhancement

Attached:

user.png (16×16 px, 437 B)

Details

Reference
bz19381

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:41 PM
bzimport set Reference to bz19381.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 6277
Better-compressed PNG editing toolbar buttons

I ran the edit page through Google's Page Speed:

  • skins/common/images/button_italic.png: saves 669 bytes (68.6% reduction)
  • skins/common/images/button_bold.png: saves 666 bytes (68.1% reduction)
  • skins/common/images/button_extlink.png: saves 594 bytes (54.3% reduction)
  • skins/common/images/button_image.png saves 473 bytes (42.7% reduction)
  • skins/common/images/button_media.png saves 242 bytes (21% reduction)
  • skins/common/images/button_link.png saves 90 bytes (20.7% reduction)
  • skins/common/images/button_hr.png saves 90 bytes (24.2% reduction)
  • skins/common/images/button_sig.png saves 72 bytes (5.9% reduction)

Total saving: 2896 bytes

attachment smaller_buttons.zip ignored as obsolete

Partial fix: PNGs crushed in r54697. 72 files in 10 dirs, 25kb savings.

It would help if I could type . . . the actual revision was r54679.

Just looked at this now...

Yours is 437 bytes, the user.gif is 325 bytes

All your smaller_buttons are out of date (per the crush I imagine)