-
Notifications
You must be signed in to change notification settings - Fork 110
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
Image is partially converted to WebP
#69
Comments
@mitogh This may be expected, as the uploaded source image is not being converted to WebP. cc @adamsilverstein |
This is expected because we keep the original image (always). I'd love to test this further though to see how older Safari (MacOS), or even outlook or ie handle this |
Closing as "works for me" since this is the expected behavior. Lovely image though! |
While running some tests I face a new test case that would be worth considering how we are going to handle:
This is the same as well if we upload a My suggested approach here would be similar to the if the original image is a large JPEG
If the original image is a webp
This would look like:
A function to return the order of the sources (with filters) would exists as well so we can output the function picture_mime_order() {
return array(
'sources'' => 'image/web'
'fallback' => 'image/jpeg'
);
} Tihs would allow us to construct a cc @adamsilverstein let me know if you think a new issue should be open to handle this scenario instead. An image that can be used to replicate the scenario described above. |
Good point about what happens when you upload a very large image and especially to consider large WebP uploads as well.
Yes, can you please open a new issue for this? I will do some testing with the image you provided (and the twentytwentytwo theme) in the meantime. Thanks! |
I believe this is what happens currently when the webp-upload module is enabled. |
Ticket created:
Partially only |
Note
Make sure the
Performance
plugin is enabled and activated, as well with thewebp
modules for images at:Settings > Performance
Related with issue:
Steps to recreate
Media > Add New
Generated Markup:
Original image to replicate the issue.
The text was updated successfully, but these errors were encountered: