Make WordPress Core

Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#19232 closed enhancement (fixed)

Smush admin images to lower file size

Reported by: georgestephanis's profile georgestephanis Owned by: nacin's profile 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 13 years ago.
wp-includes.images.smushed.zip (21.2 KB) - added by georgestephanis 13 years ago.
wp-includes/images folder compressed -- saving 34% or 11kb

Download all attachments as: .zip

Change History (16)

@georgestephanis
13 years ago

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

#2 @ocean90
13 years ago

This came up in #13307 too.

#3 @jane
13 years ago

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

#4 @georgestephanis
13 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?

#5 @helenyhou
13 years ago

Closed #19857 as a duplicate.

#6 @l3rady
13 years ago

  • Cc scott@… added

#7 @nacin
13 years ago

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

#8 @wgx
12 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.

#9 @nacin
12 years ago

  • Milestone changed from Awaiting Review to 3.5

Let's handle this in 3.5.

#10 @lessbloat
12 years 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".

#11 @ocean90
12 years ago

Closed #21498 as a duplicate.

#12 @helenyhou
12 years ago

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

#13 @nacin
12 years 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.

#14 @ocean90
12 years ago

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

Note: See TracTickets for help on using tickets.