Sirve imágenes WebP generadas automáticamente en vez de jpg/png a los navegadores compatibles con WebP.
Calificaciones
4.4
Última actualización
April 7, 2024
Versión
0.25.9
Instalaciones activas
300K
WebP Express

Más de 9 de cada 10 usuarios utilizan un navegador capaz de mostrar imágenes webp. Sin embargo, en la mayoría de los sitios web se les ofrecen imágenes jpeg, que suelen duplicar el tamaño de las imágenes webp para una calidad dada. ¡Qué desperdicio de ancho de banda! Este plugin fue creado para ayudar a remediar esta situación. Con poco esfuerzo, los administradores de WordPress pueden hacer que su sitio sirva imágenes webp autogeneradas a los navegadores que lo soportan, mientras que siguen sirviendo archivos jpeg y png a los navegadores que no soportan webp.

El convertidor de imágenes

El plugin utiliza la biblioteca WebP Convert para convertir imágenes a webp. WebP Convert puede convertir imágenes utilizando varios métodos. Existen los métodos de conversión «locales»: imagick, cwebp, vips, gd. Si ninguno de ellos funciona en tu servidor, existen alternativas en la nube: ewww (de pago) o conectando a un sitio de WordPress donde tienes instalado WebP Express y habilitaste la funcionalidad «servicio web».

La parte «Sirviendo webp a los navegadores compatibles».

The plugin supports different ways of delivering webps to browsers that supports it:

  1. By routing jpeg/png images to the corresponding webp – or to the image converter if the image hasn’t been converted yet.
  2. By altering the HTML, replacing image tags with picture tags. Missing webps are auto generated upon visit.
  3. By altering the HTML, replacing image URLs so all points to webp. The replacements only being made for browsers that supports webp. Again, missing webps are auto generated upon visit.
  4. In combination with Cache Enabler, the same as above can be achieved, but with page caching.
  5. You can also deliver webp to all browsers and add the webpjs javascript, which provides webp support for browsers that doesn’t support webp natively. However, beware that the javascript doesn’t support srcset attributes, which is why I haven’t added that method to the plugin (yet).

The plugin implements the «WebP On Demand» solution described here and builds on a bunch of open source libraries (all maintained by me): – WebP Convert: For converting images to webp – WebP Convert Cloud Service: For the Web Service functionality – DOM Util for WebP: For the Alter HTML functionality – Image MimeType Guesser: For detecting mime types of images. – HTAccess Capability Tester: For testing .htaccess capabilities in a given directory, using live tests – WebP Convert File Manager: For browsing conversions and triggering conversions. – Exec With Fallback: For emulating exec() on systems where it is disabled (using proc_open(), passthru() or similar alternatives).

Benefits

  • Much faster load time for images in browsers that supports webp. The converted images are typically less than half the size (for jpeg), while maintaining the same quality. Bear in mind that for most web sites, images are responsible for the largest part of the waiting time.
  • Better user experience (whether performance goes from terrible to bad, or from good to impressive, it is a benefit).
  • Better ranking in Google searches (performance is taken into account by Google).
  • Less bandwidth consumption – makes a huge difference in the parts of the world where the internet is slow and costly (you know, ~80% of the world population lives under these circumstances).
  • Actualmente, el ~97% de todo el tráfico se realiza con navegadores compatibles con webp.
  • It’s great for the environment too! Reducing network traffic reduces electricity consumption which reduces CO2 emissions.

Limitations

Supporting WebP Express

Bread on the table don’t come for free, even though this plugin does, and always will. I enjoy developing this, and supporting you guys, but I kind of need the bread too. Please make it possible for me to continue wasting time on this plugin:

Supporters of WebP Express

Personas que han contribuido recientemente con ko-fi – ¡Gracias!

  • 3 Nov: Tobi
  • 5 Nov: Anon
  • 18 Nov: Oleksii
  • 20 Feb: Assen Kovatchev
  • 22 Feb: Peter
  • 29 Feb: Luis Méndez Alejo
  • 5 Mar: tomottoe
  • 9 Mar: La Braud

Persons who contributed with extra generously amounts of coffee / lifetime backing (>30$) – thanks!:

  • Max Kreminsky ($115)
  • Justin – BigScoots ($105)
  • Bill Vallance ($102)
  • Label Vier ($100)
  • Sebastian ($99)
  • Tammy Lee ($90)
  • Steven Sullivan ($51)
  • Mathieu Gollain-Dupont ($50)
  • Erica Dreisbach ($50)
  • Brian Laursen ($50)
  • Dimitris Vayenas ($50)

Personas que actualmente respaldan el proyecto a través de GitHub Sponsors o Patreon – ¡Gracias!

Instalaciones activas
300K
Probado hasta
6.5.4
Te puedes descargar este plugin para utilizarlo en tu instalación autoalojada de WordPress.