Plus WebP or AVIF

Descripción

Generate WebP or AVIF

  • Generate WebP or AVIF file when adding image file in Media Library.
  • Generate WebP or AVIF from all the images by async/await.
  • Optionally, Can replace image files with WebP or AVIF when adding new media, and delete the original image file. Also, when generating all images, the original image file ID will be overwritten as WebP or AVIF and the original image file will be deleted. All URLs in the content are also replaced.

WP-CLI

WP-CLI commands are available. If you have a large number of files, WP-CLI commands is more reliable.
* wp pluswebpavif
* wp pluswebpavif webp -> Generated WebP.
* wp pluswebpavif avif -> Generated AVIF.
* wp pluswebpavif webp --mail=true -> Send results via email.
* wp pluswebpavif webp --pid=12152 -> Process only specified Media ID.
* wp pluswebpavif avif --quality=90 -> Specifies the quality of WebP or AVIF.
* wp pluswebpavif webp --replace=false -> WebP or AVIF replacement of images and contents.
* wp pluswebpavif avif --addext=true -> Append the webp or avif extension to the original filename.
* wp pluswebpavif webp --types=image/png,image/gif -> MIME type to convert.

How it works

Filter hooks

/** ==================================================
 * Filter for advanced change database.
 * If you want to replace other databases besides content.
 */
add_filter(
    'plus_webp_advanced_change_db',
    function( $before_url, $after_url ) {
        /* Your processing */
        return array( $before_url, $after_url );
    },
    10,
    2
);

Capturas

  • Biblioteca de medios
  • Generate
  • Ajustes

Instalación

  1. Sube la carpeta plus-webp al directorio /wp-content/plugins/
  2. Activa el plugin a través del menú «Plugins» en WordPress

Preguntas frecuentes

ninguno

Reseñas

19 de julio de 2024
After updating to version 4.09, I had to turn off the plugin, as it began to change the sender name for all letters coming from my site to mail using the following template «[ Site name ] WebP generate for Plus WebP». After deactivating the plugin, the problem was resolved. Your plugin is very good! I gave it 2 stars just to get your attention.
24 de mayo de 2024
This is great plugin to save my server space! Dear developer, I prefer to donate by paypal, usdt or stripe instead of inputting my credit card elsewhere.
12 de mayo de 2024
The plugin works, converts images to webp but also uses the apache PHP LoadFromFile that loads the images from file rather make http request, which means it will change the canonical of the images. Which means your articles and website will disappear from Google search, which will kill the traffic and the website finally. This happened to my website till I traced the solution down to this plugin. You’ll post and it just won’t show on Google search even though all is green on GSC because of this plugin. If you notice your website traffic is dying or your website doesn’t show on Google, try removing this plugin and check your keywords acquisition on ahrefs.
16 de octubre de 2023
Works great! Just be careful with the «WebP replacement of images and contents» setting. Do you REALLY want to remove all your old JPG files?
Leer todas las 25 reseñas

Colaboradores y desarrolladores

«Plus WebP or AVIF» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«Plus WebP or AVIF» ha sido traducido a 7 idiomas locales. Gracias a los traductores por sus contribuciones.

Traduce «Plus WebP or AVIF» 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

[5.03] 2024/11/14

  • Fix – Rebuilt javascript.

[5.02] 2024/11/14

  • Fix – Rebuilt javascript.

[5.01] 2024/11/12

  • Fix – Rebuilt javascript.
  • Change – Changed the required version of WordPress.

[5.00] 2024/08/23

  • Changed – Plugin name changed from «Plus WebP» to «Plus WebP or AVIF».
  • Added – AVIF conversion.

[4.20] 2024/08/21

  • Added – WP-CLI command arguments for settings.
  • Changed – Classified WP-CLI commands.

[4.11] 2024/08/17

  • Fixed – Transparent PNG conversion issue.
  • Added – Added whether to send email to WP-CLI command arguments.
  • Added – Added the media ID to the WP-CLI command argument.

[4.10] 2024/07/19

  • Added – ‘plus_webp_advanced_change_db’ filter for Replacement of non-content databases.
  • Removed – Blogname for mail from name.

[4.09] 2024/07/18

  • Added – WP-CLI command for warning indication at console output.
  • Tweak – Webp bulk generation by React.
  • Added – Blogname for mail from name.

[4.08] 2024/07/15

  • Fix – Support for cases where media exists in the database and does not exist as a file.
  • Thanks – Marcus Karlos.

[4.07] 2024/06/20

  • Added – WP-CLI command for webp bulk generation.

[4.06] 2024/03/05

  • Fix – Changed file operations to WP_Filesystem.

4.05

Changed json_encode to wp_json_encode.

4.04

Supported WordPress 6.4.

4.03

Fixed link to plugin page.

4.02

Fixed about sending e-mail.

4.01

Added description.
Removed unnecessary codes.

4.00

Moved the location of the Admin page to the Media Library.
The admin screen has been converted to React.
Batch generation of webp by async/await is now supported.
Fixed a problem where title name comparison failed and generated duplicate files.
Metadata generation for WordPress 6.1-alpha to match WordPress 6.2.

3.00

Supported WordPress 6.1-alpha.

2.07

Added a hook for Organize Media Folder.

2.06

Fixed with processing when media does not exist.

2.05

Supported XAMPP.

2.04

Fixed problem of metadta.

2.03

Fixed problem of metadta.

2.02

Fixed content replacement issue.

2.01

Fixes various messages and branches in ajax.

2.00

Added ajax generation for webp.

1.13

Fixed an issue with saving options.
Added options for extension.

1.12

Corregido el problema del vaciado de las programaciones del programador de tareas.
Corregido el problema del umbral de imágenes grandes.

1.11

Corregido el problema de la obtención de los títulos en la generación en lotes.

1.10

Corregido el procesado en segundo plano.

1.09

Dar los detalles en el aviso por correo electrónico.
Añadida la pantalla de gestión del aviso de la finalización de la generación en lotes.

1.08

Añadida la posibilidad de elegir qué tipos de archivos convertir y cuáles no.

1.07

Compatibilidad con GIF transparentes y PNG.
Corregido el problema del nombre del archivo.

1.06

Se solucionó el problema de reemplazo de URL de contenido.

1.05

Se solucionó un problema de reemplazo de imagen.
Conformado al estándar de codificación de WordPress.

1.04

Conformado al estándar de codificación de WordPress.

1.03

Se añadió escapado html en la pantalla de gestión.

1.02

Solucionado un problema con la conversión de imágenes.
Solucionado un problema con el reemplazo de imágenes.
Añadido ajuste de nivel de calidad.

1.01

Solucionado problema con los archivos PNG.
Añadido script de desinstalacion.

1.00

Versión inicial.