WP Manifestindependent plugin directory
manifest / media / gif-to-webm-plugin

Gif to WebM plugin

Upgrade your website's multimedia experience with the GIF to WebM Converter plugin. Convert, customize, and captivate your audience with visually appealing WebM videos, enhancing your WordPress site's overall appeal and functionality

★ 1stars
releaselatest · 3mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/finland93/gif-to-webm-plugin/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

GIF to WebM — WordPress Plugin

Store GIF + WebM pairs and output them with a simple shortcode as a lightweight, autoplaying WebM video that automatically falls back to the GIF if WebM can't play. WebM is typically a fraction of a GIF's size, so this speeds up pages while keeping the animation everywhere.

How to use

  1. Convert your GIF to WebM (e.g. with the free ezgif.com/gif-to-webm).
  2. Upload both the GIF and the WebM to your Media Library.
  3. Go to GIF to WEBM in the admin menu, paste both URLs (plus optional size and link), and save.
  4. Copy the generated shortcode — e.g. [gif-video id='12'] — into any post or page.

Styling

Element CSS class
Container <div> .bannerVideo
Video / image .bannerGif
.bannerVideo { display: flex; justify-content: center; }
.bannerGif   { max-width: 100%; height: auto; }

What changed in 2.0.0

The 1.0 version had three real bugs; all are fixed:

  • Saved shortcode was always empty — $shortcode_id was used to build the shortcode string before wp_insert_post() had returned it, so every entry stored [gif-video id='']. The ID is now generated first and the correct shortcode is saved.
  • The fallback never worked — the footer script looked for element IDs the shortcode never rendered, and it ran on every page. It's replaced by a properly scoped script that's only loaded where a shortcode appears and that actually swaps to the GIF when the WebM fails (handling both <source> and codec errors).
  • Delete was a CSRF risk — entries were removed via an unprotected GET link. Deletes (and the add/edit form) are now nonce-protected with capability checks.

Also added: an Edit action (1.0 was add/delete only), optional links/dimensions, loading="lazy" + playsinline, output escaping throughout, and a clean uninstall.

License

GPLv2 or later — see LICENSE.

Author: Finland93

Releases

1 release.

Tag
Published
release latest
Jun 29, 2026 3mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.