[wp-trac] [WordPress Trac] #24380: Missing Compression Parameter in WP_Image_Editor_GD

WordPress Trac noreply at wordpress.org
Fri Jun 6 14:12:06 UTC 2014


#24380: Missing Compression Parameter in WP_Image_Editor_GD
-------------------------+-----------------------------
 Reporter:  MuViMoTV     |       Owner:  wonderboymusic
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  4.0
Component:  Media        |     Version:  3.5.1
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  docs
-------------------------+-----------------------------

Comment (by mikemanger):

 Replying to [comment:32 DrewAPicture]:
 > 2. In the `png_compression_level` filter docs, it's mentioned that there
 are two different contexts possible, yet the filter is only evaluated one
 place in the codebase and the context isn't dynamic. So where would the
 second context enter the picture? Also, the contexts should be spelled out
 for the `$context` parameter, not in the long description area.

 In [attachment:24380.4.2.patch] I have removed the context parameter. I
 copied it from the `jpeg_quality` filter above so the context parameter
 should probably be removed or deprecated there as well (looks like it came
 from the old `image_resize` function).

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


More information about the wp-trac mailing list