[wp-trac] [WordPress Trac] #44474: Produce better image quality/size combination via php Imagick module

WordPress Trac noreply at wordpress.org
Wed Jun 27 11:31:28 UTC 2018


#44474: Produce better image quality/size combination via php Imagick module
-------------------------+-------------------------------------------------
 Reporter:  losangelos   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:
 Severity:  normal       |   Keywords:  needs-unit-tests has-screenshots
  Focuses:               |  has-patch
-------------------------+-------------------------------------------------
 The current implementation of the WP_Image_Editor abstract class via the
 php-imagick module has a resize function (thumbnail_image) which uses
 FILTER_TRIANGLE as resize filter by default and some specific values for
 sharpening and compressing the uploaded jpg image (resize -> sharpen ->
 compress).

 The currently used combination of values/methods for manipulating the
 uploaded jpg image can be improved by using a combination which produces
 jpg images better in quality and considerably smaller in size.

 We have created a github page [https://greenpeace.github.io/planet4
 -imagestest-results/] where we can compare results produced by 6 different
 methods.
 Method #1 is the default method used by WP currently.
 Method #6 produces best quality/size combination among those.

 {{{
 Resize: Lanczos
 Sharpening: unsharpMask( Radius 1, Sigma 0.45, Amount 3, Threshold 0 )
 Compression: Interlace_Plane
 Quality: 60
 }}}


 Will upload diff file soon.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44474>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list