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

WordPress Trac noreply at wordpress.org
Sat May 31 20:49:49 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:  2nd-opinion dev-feedback  |     Focuses:
--------------------------------------+-----------------------------

Comment (by mikemanger):

 Replying to [comment:28 ericlewis]:
 > Since actual quality has nothing to do with the operation at hand, would
 it be useful to create a PNG-specific class property like
 `compression_level_png` to use here instead?

 Yes, adding a separate property should make the documentation clearer. It
 could be more specific like `[image_]zlib_compression_level`, but this
 might be just needless abstraction.. just wondering what happens if
 another class gets added with a completely different scale.

 If the property goes from 0-9, this would need converting to a 1-100 scale
 for the [http://www.imagemagick.org/script/command-line-
 options.php#quality ImageMagick class].

 Another option could be to add a filter (attachment:24380.3.patch) or just
 make it obvious what 'quality' means for different image formats in the
 `wp_editor_set_quality` filter documentation.

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


More information about the wp-trac mailing list