[wp-trac] [WordPress Trac] #33642: Improve default Imagick compression settings

WordPress Trac noreply at wordpress.org
Tue Feb 23 22:55:54 UTC 2016

#33642: Improve default Imagick compression settings
 Reporter:  joemcgill    |       Owner:  joemcgill
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  4.5
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:

Comment (by joemcgill):

 [attachment:33642.3.patch] reworks [attachment:33642.2.patch] by adding a
 new protected `_resize()` method to `WP_Image_Editor_Imagick` that is used
 in both the `resize()` and `crop()` methods in place of

 The `_resize()` method is more efficient than the basic
 `Imagick::resizeImage()` method in that it:

 1. Strips profile and metadata from the image (except for color profiles)
 before resizing.
 2. Resamples really large images to 5x the output size before resizing
 (when applicable).
 3. Resizes the image using the `Imagick::resizeImage()` method with the
 4. Updates several quality settings after the resize has happened.

 In my benchmarks, this is performing well and is achieving an average of
 60% file reduction over previous defaults with average DSSIM scores of
 0.0019 compared with previous defaults.

Ticket URL: <https://core.trac.wordpress.org/ticket/33642#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list