WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 22 months ago

Last modified 22 months ago

#19232 closed enhancement (fixed)

Smush admin images to lower file size

Reported by: georgestephanis Owned by: nacin
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.3
Component: Graphic Design Keywords: has-patch
Focuses: Cc:

Description

Yahoo has a great little website called smushit.com (or smush.it if you prefer) that uses 100% lossless compression methods to make images deliver the same quality in significantly less space.

For example, I ran the contents of the ~/wp-admin/images/ folder through it, and it shaved off 23.34% or 35.87 kb off the files.

Smaller files are always good!

Zip files attached with smushed images.

Attachments (2)

wp-admin.images.smushed.zip (99.8 KB) - added by georgestephanis 3 years ago.
wp-includes.images.smushed.zip (21.2 KB) - added by georgestephanis 3 years ago.
wp-includes/images folder compressed -- saving 34% or 11kb

Download all attachments as: .zip

Change History (16)

georgestephanis3 years ago

wp-includes/images folder compressed -- saving 34% or 11kb

comment:2 ocean903 years ago

This came up in #13307 too.

comment:3 jane3 years ago

  • Summary changed from Please smush your images before comitting them! to Smush admin images to lower file size

comment:4 georgestephanis3 years ago

it's the sorta obnoxious thing that if it's done too early in the release cycle, the smaller files will just get overwritten as changes happen, but too late in the cycle noone wants to do it as it's late in the cycle. I'm not sure from a workflow perspective if it's really a practical solution as a ticket-action, or if it should be more of a 'guidelines' of smushing images before attaching them to tickets and such -- or if trac could somehow auto-smush uploaded images?

comment:5 helenyhou2 years ago

Closed #19857 as a duplicate.

comment:6 l3rady2 years ago

  • Cc scott@… added

comment:7 nacin2 years ago

  • Owner set to nacin
  • Status changed from new to reviewing

comment:8 wgx2 years ago

Commenting here as per: https://github.com/WordPress/WordPress/pull/5

Hey. I used an OSX app called ImageOptim which uses 'PNGOUT' library to crush the graphics.

I used the 'xtreme' setting which does 1000s of trials over the graphics with no visual changes.

Obviously, saving 150kb (multiplied by the bajillion worpress installs out there) is a significant saving.

comment:9 nacin23 months ago

  • Milestone changed from Awaiting Review to 3.5

Let's handle this in 3.5.

comment:10 lessbloat23 months ago

Discussed in IRC this afternoon (https://irclogs.wordpress.org/chanlog.php?channel=wordpress-ui&day=2012-08-29&sort=asc#m54966).

Georgestephanis said, "This is something nacin's said before he'd rather have be an automated trigger in the repository using a tool like pngcrush, rather than using Yahoo's smushit API"

Nacin said, "I can ask bazza to add the script to http://code.trac.wordpress.org/browser/optimize-images. or batmoo".

comment:11 ocean9022 months ago

Closed #21498 as a duplicate.

comment:12 helenyhou22 months ago

Done in [21980] - not sure if we should close as fixed or leave it open for an automated script (like bumpbot).

comment:13 nacin22 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

There will be an automated tool at some point, but we can close this out.

comment:14 ocean9022 months ago

Can't we borrow the script from the wp.com themes repo?

Note: See TracTickets for help on using tickets.