Modern Image Formats

Descripción

This plugin adds WebP and AVIF support for media uploads within the WordPress application. By default, AVIF images will be generated if supported on the hosting server, otherwise WebP will be used as the output format. When both formats are available, the output format can be selected under Settings > Media. Modern images will be generated only for new uploads, pre-existing images will only converted to a modern format if images are «Regenerated».

By default, only modern image format sub-sizes will be generated for JPEG uploads – only the original uploaded file will still exist as a JPEG image, generated image sizes use be WebP or AVIF files. To change this behavior, there is a checkbox in Settings > Media «Also output JPEG» that – when checked – will result in the plugin generating both JPEG and WebP or AVIF images for every sub-size (noting again that this will only affect newly uploaded images, i.e. after making said change).

This plugin was formerly known as WebP Uploads.

Instalación

Instalación desde WordPress

  1. Visita Plugins > Añadir nuevo.
  2. Search for Modern Image Formats.
  3. Install and activate the Modern Image Formats plugin.

Instalación manual

  1. Sube toda la carpeta webp-uploads al directorio /wp-content/plugins/.
  2. Visita Plugins.
  3. Activate the Modern Image Formats plugin.

FAQ

¿Dónde puedo enviar mis comentarios sobre el plugin?

Te animamos a que nos envíes tus comentarios, que son muy apreciados, sobre todo porque este plugin puede contener futuras funciones del núcleo de WordPress. Si tienes sugerencias o peticiones de nuevas funciones, puedes enviarlas como incidencia en el repositorio GitHub del Equipo de Rendimiento de WordPress. Si necesitas ayuda para solucionar problemas o tienes alguna pregunta sobre el plugin, crea un nuevo tema en nuestro foro de soporte.

¿Dónde puedo informar fallos de seguridad?

El equipo de Rendimiento y la comunidad WordPress se toman en serio los fallos de seguridad. Apreciamos tu esfuerzo para divulgar responsablemente tus hallazgos, y haremos todo lo posible para reconocer tus contribuciones.

Para informar de un problema de seguridad, visita el programa WordPress HackerOne.

¿Cómo puedo contribuir al plugin?

¡Las contribuciones son siempre bienvenidas! Obtén más información sobre cómo participar en el manual del equipo de Rendimiento.

He activado el módulo de Modern Image Formats, pero las imágenes WebP no siempre se generan cuando subo una imagen JPEG. ¿Por qué?

Hay dos razones principales por las que no se puede generar una imagen WebP:

  1. El plugin Modern Image Formats ha identificado que la versión WebP de la imagen JPEG subida tendría un tamaño de archivo mayor que la imagen JPEG original, por lo que no genera la versión WebP.
  2. La imagen JPEG no se subió a la biblioteca de medios. En este momento, las versiones WebP solo se generan para imágenes en la biblioteca de medios. Las versiones WebP no se generan para las imágenes JPEG que se añadan al sitio de otras maneras, como en un archivo de plantilla o en el personalizador.

Con el plugin Modern Image Formats activado, ¿el plugin generará versiones JPEG y WebP de cada imagen que suba?

Por defecto, el plugin Modern Image Formats solo generará versiones WebP de las imágenes que subas. Si deseas generar versiones WebP y JPEG, puedes navegar a Ajustes > Medios para activar la opción Generar archivos JPEG además de WebP.

Reseñas

18 de julio de 2024 5 respuestas
This plugin worked like it says but it did not change all of the images in the blog posts – only some. So I have a ton of broken images because they are referencing the .jpg and not the .avif I even tried regenrate thumbnails and that did not fix the issue. All of the broken images are the thumnails that are resized. It would be better if it did not automatically delete those images so that at least if it didnt replace them all in the blog posts the old image would still resolve.
25 de marzo de 2024 1 respuesta
Simple Plugin, that does it’s one simple job very good. Definitely a recommendation!
5 de febrero de 2024 1 respuesta
I’ve had a hard time with an issue making it impossible for my users to upload their profile avatar (using Peepso plugin). Trying to debug the Ajax call, I’ve observed an error 500 message, making the whole website unresponsive when being called upon avatar confirmation. After proceeding by elimination, I finally located the issue to this new extension I had installed some time ago. Next time I’ll be more prudent…
20 de enero de 2024 5 respuestas
The plugin does exactly what it says; Adds support for WebP images and automatically converts the pictures you upload to that specific format. However, not having the option to convert existing images is a big feature missing from the plugin for me. I don’t know what you have in your future plans, but what would you recommend for converting old images to WebP and deleting their original format to save disk space? I’m currently using WebP Express, but I wonder if you recommend something else?
Leer todas las 9 reseñas

Colaboradores y desarrolladores

«Modern Image Formats» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«Modern Image Formats» está traducido en 8 idiomas. Gracias a los traductores por sus contribuciones.

Traduce «Modern Image Formats» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

2.0.2

Enhancements

  • I18N: Add context to Modern Image Formats section title. (1287)

Bug Fixes

  • Improve compatibility of styling picture elements. (1307)

2.0.1

Bug Fixes

  • Fix fatal error when another the_content filter callback returns null instead of a string. (1283)

2.0.0

Features

  • Add picture element support. (73)
  • Add AVIF image format support. Add setting for output image format to choose between WebP and AVIF. (1176)

Enhancements

  • Improve Settings->Media controls for Modern Image Formats. (1273)
  • Remove obsolete fallback script now that picture element is supported. (1269)

1.1.1

Enhancements

  • Prepend Settings link in webp-uploads. (1146)
  • Improve overall code quality with stricter static analysis checks. (775)
  • Bump minimum PHP requirement to 7.2. (1130)

Documentation

  • Updated inline documentation. (1160)

1.1.0

  • Add link to WebP settings to plugins table. (1036)
  • Rename plugin to «Modern Image Formats». (1101)
  • Use plugin slug for generator tag. (1103)
  • Delete option when uninstalling the Modern Image Formats plugin. (1116)
  • Bump minimum required WP version to 6.4. (1062)
  • Update tested WordPress version to 6.5. (1027)

1.0.5

  • Exclude «.wordpress-org» directory when deploying standalone plugins. (866)

1.0.4

  • Bump minimum required PHP version to 7.0 and minimum required WP version to 6.3. (851)

1.0.3

  • Add standalone plugin assets. (815)

1.0.2

  • Fix WebP handling when editing images based on WordPress 6.3 change. (796)

1.0.1

  • Bump tested up to version to 6.3. (772)

1.0.0

  • Lanzamiento inicial del plugin Modern Image Formats como plugin independiente. (664)