apply_filters( 'image_editor_output_format', string[] $output_format, string $filename, string $mime_type )

Filters the image editor output format mapping.


Enables filtering the mime type used to save images. By default, the mapping array is empty, so the mime type matches the source image.

Top ↑

See also

Top ↑



(string[]) An array of mime type mappings. Maps a source mime type to a new destination mime type. Default empty array.

  • '...$0'
    (string) The new mime type.


(string) Path to the image.


(string) The source image mime type.

Top ↑


File: wp-includes/class-wp-image-editor.php

View on Trac

Top ↑


Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.