[wp-trac] [WordPress Trac] #64677: Client-Side Media: Move `image_editor_output_format` filtering to the upload response

WordPress Trac noreply at wordpress.org
Fri Feb 20 17:44:49 UTC 2026


#64677: Client-Side Media: Move `image_editor_output_format` filtering to the
upload response
-----------------------------+---------------------
 Reporter:  adamsilverstein  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  7.0
Component:  Media            |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+---------------------

Comment (by swissspidy):

 This was added to the index so that the desired output mapping is known
 client-side. Iif a plugin wants to convert all JPEGs to WebP for example,
 the client-side media handling can do it automatically.

 Of course it's not possible to pass a filename in that case. Updating
 documentation accordingly is reasonable IMO.

 > Move the image_editor_output_format logic from the REST API index
 response into the initial image upload response

 But then the image is already uploaded and you can't convert it in the
 browser anymore.

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


More information about the wp-trac mailing list