Plus WebP or AVIF

Description

Générez des fichiers WebP ou AVIF

  • Générez un fichier WebP ou AVIF lors de l’ajout d’un fichier image dans la médiathèque.
  • Générez des fichiers WebP ou AVIF à partir de toutes les images en utilisant async/await.
  • Il est possible, en option, de remplacer les fichiers image par des formats WebP ou AVIF lors de l’ajout de nouveaux médias, et de supprimer le fichier image original. De même, lors de la génération de toutes les images, l’ID du fichier image original sera remplacé par un format WebP ou AVIF, et le fichier image original sera supprimé. Toutes les URL présentes dans le contenu seront également remplacées.

WP-CLI

Les commandes WP-CLI sont disponibles. Si vous avez un grand nombre de fichiers, les commandes WP-CLI sont plus fiables.
* wp pluswebpavif
* wp pluswebpavif webp -> Générer un fichier WebP.
* wp pluswebpavif avif -> Générer un fichier AVIF.
* wp pluswebpavif help -> Spécification de cette commande.
* wp pluswebpavif webp mail -> Envoyer les résultats par e-mail.
* wp pluswebpavif webp replace -> Remplacer les images et le contenu par un fichier WebP ou AVIF.
* wp pluswebpavif avif addext -> Ajouter l’extension webp ou avif au nom de fichier d’origine. * wp pluswebpavif webp --pid=12152 -> Traite uniquement l’identifiant du média spécifié (identifiant de la source de conversion).
* wp pluswebpavif avif --quality=90 -> Spécifie la qualité WebP ou AVIF.
* wp pluswebpavif webp --types=image/png, image/gif -> Type MIME à convertir.

Comment ça marche

Crochet de filtres

/** ==================================================
 * 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
);

Captures d’écrans

  • Médiathèque
  • Générer
  • Réglages

Installation

  1. Téléverser le répertoire plus-webp dans le répertoire /wp-content/plugins/
  2. Activer l’extension via le menu « Extensions » de WordPress.

FAQ

aucun

Avis

19 juillet 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 mai 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 mai 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.
Lire les 26 avis

Contributeurs/contributrices & développeurs/développeuses

« Plus WebP or AVIF » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“Plus WebP or AVIF” a été traduit dans 8 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « Plus WebP or AVIF » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal des modifications

[5.11] 2026/01/01

  • Fix – Issue where metadata containing the original filename remains after skipping duplicate filenames.

[5.10] 2025/06/19

  • Change – WP-CLI argument specification changes.

[5.04] 2025/04/02

  • Fix – Rebuilt javascript.

[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

Fixed clear cron schedules issue.
Fixed problem of threshold big image.

1.11

Fixed the problem of title acquisition in bulk generation.

1.10

Fixed background processing.

1.09

Give details when email notification.
Added the management screen notification of the end of batch generation.

1.08

Added ability to choose which file types to convert and which not.

1.07

Supported transparent gif & png.
Fixed file name issue.

1.06

Fixed content URL replacement issue.

1.05

Fixed an image replacement issue.
Conformed to the WordPress coding standard.

1.04

Conformed to the WordPress coding standard.

1.03

Added html escape on the management screen.

1.02

Fixed an issue with image conversion.
Fixed an image replacement issue.
Added the setting of quality.

1.01

Fixed problem of PNG files.
Added uninstall script.

1.00

Initial release.