XForm for WordPress

Open-source image optimization and OG image generation for WordPress. Runtime URL transformation with zero database changes.

What you get

Runtime Transformation

Image URLs are rewritten as pages load. Nothing is changed in your database - ever.

Auto Format Conversion

Automatically serves WebP or AVIF to browsers that support them, with JPEG/PNG fallback.

OG Image Generation

Branded social preview images generated automatically from your post data and featured images.

Zero Risk

Disable the plugin and you're instantly back to standard WordPress. No cleanup required.

Configurable Quality

Set your preferred quality level to balance file size and visual fidelity.

SEO Plugin Integration

Pulls titles and descriptions from Yoast, RankMath, All-in-One SEO, and SEOPress.

How it works

WP Xform transforms your image URLs at runtime as WordPress serves each page. Your original URLs stay untouched in the database, and images are routed through XForm's CDN for automatic optimization and format conversion.

src="https://yoursite.com/wp-content/uploads/photo.jpg"
src="https://yoursite.xform.media/wp-content/uploads/photo.jpg?format=auto&quality=80"

Responsive srcset attributes are transformed too, so every image size benefits from optimization.

Simple, focused settings

The plugin settings sit discreetly under Settings > WP Xform, so there's no extra noise in your admin menu. Everything you need is on a single, clean page.

Click to enlarge

Get started in minutes

1

Download the plugin

Grab the latest release from GitHub and upload it to your WordPress site via Plugins > Add New > Upload Plugin.

2

Activate and configure

Activate the plugin and head to Settings > WP Xform. Enter your XForm source URL and hit Test Connection to verify.

3

Enable and go

Toggle image transformation on, set your preferred quality, and optionally enable OG image generation. That's it.

Requirements

  • WordPress 5.6 or higher
  • PHP 7.4 or higher
  • An active XForm account with a configured source

Supported formats

With auto-format enabled, visitors automatically receive the most efficient format their browser supports.

WebP

Excellent compression, supported by all modern browsers

AVIF

Best-in-class compression, growing browser support

JPEG

Universal compatibility for photographs

PNG

Lossless quality with transparency support

GIF

Animated image support

BMP / TIFF

Legacy format support when needed

Automatic OG images

WP Xform integrates with your SEO plugin to generate branded social preview images for every page. When someone shares your content on social media, they'll see a polished, consistent preview card instead of a random image or nothing at all.

Featured image

Uses the post's featured image as the background

Default background

Falls back to your configured default when no featured image is set

Branding only

Clean card with your colours, logo, and text - no image needed

Works with what you already use

WP Xform hooks into WordPress core image handling, so it works with Gutenberg, Elementor, Divi, and any theme or page builder that uses standard WordPress functions. Need to exclude certain paths? Wildcard patterns let you fine-tune exactly which images get transformed.

Open source

WP Xform is fully open source under the GPLv2 license. Browse the code, submit issues, or contribute on GitHub.

Don't have an XForm account yet?

Sign up and create a source for your WordPress site. You'll be optimizing images in minutes.