[wp-trac] [WordPress Trac] #40415: Imagick resize filter hook

WordPress Trac noreply at wordpress.org
Tue Jun 25 18:23:51 UTC 2019


#40415: Imagick resize filter hook
-------------------------------------------------+-------------------------
 Reporter:  virgodesign                          |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Media                                |     Version:  4.7.3
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing reporter-    |     Focuses:
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by robertark):

 Replying to [comment:1 dpacmittal]:
 > +1 for this. Triangle is a really bad default filter. WP should provide
 a filter hook, or better default.
 >
 > In the meanwhile I'm using this workaround:
 > in your functions.php:
 > [... truncated ...]

 Unfortunately, this workaround does not work (tested in 5.2.2).

 Is it possible to get more attention to this? We have dozens of clients
 who are reporting that their resized images are blurry - this is not
 ideal, especially since our sites are hosted on platforms that can handle
 the expensive algorithms to result in sharp images.

 I have submitted a diff to this issue (class-wp-image-editor-
 imagick.php.patch) which adds just the apply_filters call before
 processing the image resize function. This should allow for backwards
 compatibility as it does not change the existing filters or any of the
 other Imagick options.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40415#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list