[wp-trac] [WordPress Trac] #33642: Improve default Imagick compression settings
WordPress Trac
noreply at wordpress.org
Mon Feb 22 03:56:23 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.2.patch] implements most of the custom compression
settings for JPEGs from the RICG Responsive Images Plugin by adding a
custom implementation of Imagick's `thumbnailImage()` method so that we
can pass the `Imagick::FILTER_TRIANGLE` filter to the internal
`resizeImage()` method, which is not possible through the default Imagick
implementation (see [https://github.com/mkoppanen/imagick/issues/90
related Github issue]).
I've separated the functions that strip image profiles out to its own
`strip_profiles()` method, which could be used by itself alongside the
current `scaleImage()` method for resizing images.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33642#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list