-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Adjust WebP generation for only certain JPEG sizes #3166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f7bf1aa
4f19682
7df09fd
451b46d
7a8daab
7708814
63a4f15
18a6485
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2690,7 +2690,7 @@ function wp_unique_filename( $dir, $filename, $unique_filename_callback = null ) | |
| */ | ||
| if ( $is_image ) { | ||
| /** This filter is documented in wp-includes/class-wp-image-editor.php */ | ||
| $output_formats = apply_filters( 'image_editor_output_format', array(), $_dir . $filename, $mime_type ); | ||
| $output_formats = apply_filters( 'image_editor_output_format', array(), $_dir . $filename, $mime_type, '' ); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should call out in the dev note that there is no size when core calls
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @adamsilverstein Good point, the additional parameter for this definitely needs to be explained in the dev note. FWIW, it's not only in |
||
| $alt_types = array(); | ||
|
|
||
| if ( ! empty( $output_formats[ $mime_type ] ) ) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.