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

WordPress Trac noreply at wordpress.org
Tue Jun 25 21:23:40 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:16 pinktank]:
 > Replying to [comment:15 robertark]:
 > > 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.
 >
 > If you are going to add a filter for the resize function, we should add
 one for the sharpening that happens below as well since it does better
 with different sharpening parameters once you use a better resizing
 algorithm.

 Thank you for your reply - I agree. I am unsure of which or what
 parameters work best with, say Lanczos, but in my testing what was there
 seemed to be fine. How would you go about providing options for the
 sharpening?

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


More information about the wp-trac mailing list