[wp-trac] [WordPress Trac] #62305: Original HEIC image is not converted to JPEG

WordPress Trac noreply at wordpress.org
Tue Nov 5 00:55:49 UTC 2024


#62305: Original HEIC image is not converted to JPEG
-----------------------------------+-----------------------
 Reporter:  azaozz                 |       Owner:  azaozz
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  6.7
Component:  Media                  |     Version:  trunk
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch fixed-major  |     Focuses:
-----------------------------------+-----------------------

Comment (by peterwilsoncc):

 @azaozz The changes in r59317 will need a follow up. The docblock for the
 `image_editor_output_format` filter uses the variable name
 `$output_format` but the new code uses the variable name
 `$default_output_format`.

 I think `$output_format` is the better name as by the time a plugin the
 filter runs in a plugin they may no longer be the defaults. Eg, plugin two
 in this code sample won't get the defaults.

 {{{
 add_filter( 'image_editor_output_format', 'plugin_one_changes', 10 );
 add_filter( 'image_editor_output_format', 'plugin_two_changes', 20 );
 }}}

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


More information about the wp-trac mailing list