Skip to content
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

WebP Images resolution not working in Gutenberg on wordpress.com | Modern Image Format #1499

Open
tehjaymo opened this issue Aug 26, 2024 · 3 comments
Assignees
Labels
[Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) [Type] Bug An existing feature is broken

Comments

@tehjaymo
Copy link

Bug Description

I recently moved hosts returning to wordpress.com.
I've been using the Modern Image Formats plugin since release without issue.

However, since the site move whenever I upload a new image in the editor I get an error: "This image has an empty alt attribute; its file name is G0061259-1024x768.webp"

which is weird because the plugin re-names the file with -jpg- The block should be looking for G0061259-jpg-1024x768.webp or whatever image resolution was produced. The error occurs on all file resolution sizes except 'original' which displays correctly in the editor.

All images however display correctly on the front end.

Steps to reproduce

  1. Go to wordpress.com hosted blog
  2. Install the Modern Image Formats plugin
  3. Upload an image in the editor
  4. See error

Screenshots

Screenshot 2024-08-26 at 22 14 09

Additional Context

WordPress 6.6.1
PHP 8.1
Gutenberg 19.0.0

Whatever the wordpress.com Business hosting plan standard Nginx plan setting are.

Existing files and pages pre move have no issues. Only new uploads.

Selecting 'Outputi JPEG images in addition to the modern format' solves the issue in the editor, webp images display on the front end.
But this isn't too sustainable long term imo.

@tehjaymo tehjaymo added the [Type] Bug An existing feature is broken label Aug 26, 2024
@github-project-automation github-project-automation bot moved this to Not Started/Backlog 📆 in WP Performance 2024 Aug 26, 2024
@tehjaymo tehjaymo changed the title WebP Images resolution not working in Gutenberg on wordpress.com Modern Image Format WebP Images resolution not working in Gutenberg on wordpress.com | Modern Image Format Aug 26, 2024
@westonruter
Copy link
Member

Aside: On WordPress.com there is an Image CDN which should automatically serve WebP for uploaded images.

@westonruter westonruter added the [Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) label Aug 26, 2024
@adamsilverstein
Copy link
Member

Thanks for the bug report @tehjaymo... As @westonruter points out above, you may not need this plugin with wp.com already offering an image CDN with WebP support built in (but not AVIF afaik).

Still, I'm curious if I can reproduce, can you confirm what type of plan you are on?

Also, can you check Tools->Site Health->Info->Media and report back here what Editor/filetype support is listed?

@adamsilverstein adamsilverstein moved this from Not Started/Backlog 📆 to Definition ✏️ in WP Performance 2024 Sep 9, 2024
@adamsilverstein adamsilverstein self-assigned this Sep 9, 2024
@tehjaymo
Copy link
Author

tehjaymo commented Sep 9, 2024

Huh, thats weird. I've testes with the plugin turned of but CD turned on and it only seems to server resized jpgs. Anywhoos here's the info from my site health

Active editor Photon_Subsizes_WP_Image_Editor_GD
ImageMagick version number Not available
ImageMagick version string Not available
Imagick version Not available
File uploads Enabled
Max size of post data allowed 2047M
Max size of an uploaded file 2047M
Max effective file size 2 GB
Max number of files allowed 20
GD version bundled (2.1.0 compatible)
GD supported file formats GIF, JPEG, PNG, WebP, BMP, AVIF
Ghostscript version Not available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) [Type] Bug An existing feature is broken
Projects
Status: Definition ✏️
Development

No branches or pull requests

4 participants
@westonruter @tehjaymo @adamsilverstein and others