Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Jon Nunan CreditAttribution: Jon Nunan commentedWeird, I thought from the conversation in this issue: #552000: Smush core images that this had already been done.
Comment #2
philbar CreditAttribution: philbar commentedSince 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).
Comment #3
Jon Nunan CreditAttribution: Jon Nunan commentedI 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.
Comment #4
XiaN Vizjereij CreditAttribution: XiaN Vizjereij commentedIs this a duplicate of #552000: Smush core images ?Sorry .. didn't saw this was mentioned in #1. My bad.
Comment #5
bleen CreditAttribution: bleen commentednote: #922034: Optimize Bartik images
Comment #6
erikwebb CreditAttribution: erikwebb commentedIs this something that can be automated with new additions via GD2 or ImageMagick?
Comment #7
philbar CreditAttribution: philbar commentedNo, 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
Comment #8
sun.core CreditAttribution: sun.core commentedComment #9
deekayen CreditAttribution: deekayen commentedI 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.
Comment #10
bleen CreditAttribution: bleen commentedAt the end of the day this is a dup of #552000: Smush core images (and to some degree #922034: Optimize Bartik images)
Comment #11
Wim LeersSubscribing. Alternatively, you can use http://smushit.com.
Comment #12
Wim LeersComment #13
Wim Leers