diff --git src/wp-includes/media.php src/wp-includes/media.php
index 2b46167afc..97153638ef 100644
--- src/wp-includes/media.php
+++ src/wp-includes/media.php
@@ -3775,6 +3775,12 @@ function wp_get_image_editor( $path, $args = array() ) {
 		}
 	}
 
+	/** This filter is documented in wp-includes/class-wp-image-editor.php */
+	$output_format = apply_filters( 'image_editor_output_format', array(), $path, $args['mime_type'] );
+	if ( isset( $output_format[ $args['mime_type'] ] ) ) {
+		$args['output_mime_type'] = $output_format[ $args['mime_type'] ];
+	}
+
 	$implementation = _wp_image_editor_choose( $args );
 
 	if ( $implementation ) {
@@ -3833,6 +3839,18 @@ function _wp_image_editor_choose( $args = array() ) {
 			continue;
 		}
 
+		// If both mime type and output type are set, implementation should support both.
+		if (
+			isset( $args['mime_type'] ) &&
+			isset( $args['output_mime_type'] ) &&
+			(
+				! call_user_func( array( $implementation, 'supports_mime_type' ), $args['output_mime_type'] ) ||
+				! call_user_func( array( $implementation, 'supports_mime_type' ), $args['mime_type'] )
+			)
+		) {
+			continue;
+		}
+
 		if ( isset( $args['mime_type'] ) &&
 			! call_user_func(
 				array( $implementation, 'supports_mime_type' ),
diff --git tests/phpunit/tests/image/editor.php tests/phpunit/tests/image/editor.php
index 487dad0664..95981bad82 100644
--- tests/phpunit/tests/image/editor.php
+++ tests/phpunit/tests/image/editor.php
@@ -126,7 +126,7 @@ class Tests_Image_Editor extends WP_Image_UnitTestCase {
 		$this->assertSame( 82, $editor->get_quality(), 'Default quality setting is 82.' );
 
 		// Quality should change to the output format's value.
-		// A PNG image will be converted to WEBP whose quialty should be 86.
+		// A PNG image will be converted to WEBP whose quality should be 86.
 		$editor->save();
 		$this->assertSame( 86, $editor->get_quality(), 'Output image format is WEBP. Quality setting for it should be 86.' );
 
