Using ImageOptim I was able to trim off 113 kb from Drupal 7 beta.

Rather than uploading all the effected files in the dozens of folders image are found, I suggest someone with commit privileges run the program themselves.

  • Checkout drupal-HEAD
  • drop the drupal-HEAD folder into ImageOptim
  • Run ImageOptim again until there is no more size reduction
  • Commit the changes to core

Comments

Jon Nunan’s picture

Weird, I thought from the conversation in this issue: #552000: Smush core images that this had already been done.

philbar’s picture

Since the previous issue was closed, Jquery UI and some message icons were added or modified in /misc.

Not to mention the previous issue ignored all the images outside of /misc, such as the themes.

I'll leave it to someone else to mark this as duplicate if they want. I think this issue is much more clear on how to "smush" the images in a simple workflow (i.e. no uploading dozens of zip files for each folder containing images).

Jon Nunan’s picture

I think this issue is fine, was just wondering what had happened. Your comments about jQuery UI and other icons being added since that issue makes sense.

I think themes are considered separate projects though, so they might need their own issues in their own queues. Not sure.

XiaN Vizjereij’s picture

Is this a duplicate of #552000: Smush core images ?

Sorry .. didn't saw this was mentioned in #1. My bad.

bleen’s picture

erikwebb’s picture

Is this something that can be automated with new additions via GD2 or ImageMagick?

philbar’s picture

Is this something that can be automated with new additions via GD2 or ImageMagick?

No, it's can't be automated with GD2 or ImageMagick out-of-the-box. You have to use libraries in your hosting environment such as OptiPNG and jpegtran

There is progress being made on this front, it is just not supported by most hosts.
http://drupal.org/project/image_optimize
http://drupal.org/project/imageapi_optimize

sun.core’s picture

Priority: Major » Normal
deekayen’s picture

I intentionally left jQuery images out of #552000: Smush core images and its other followup issues. Drupal manages images in most places like Bartik. I think modifying the jQuery image files makes them a fork and that if you want those to be optimized to submit the compressed versions to the jQuery UI project, not here.

bleen’s picture

Status: Active » Closed (duplicate)

At the end of the day this is a dup of #552000: Smush core images (and to some degree #922034: Optimize Bartik images)

Wim Leers’s picture

Subscribing. Alternatively, you can use http://smushit.com.

Wim Leers’s picture

Issue tags: +WPO
Wim Leers’s picture