add_filter( 'wp_image_editors', 'bbioon_prefer_vips_editor' );
function bbioon_prefer_vips_editor( array $editors ): array {
array_unshift( $editors, 'BBioon_Vips_Editor' );
return $editors;
}
This filter decides which engine resizes every image a site uploads. Today the array holds WP_Image_Editor_Imagick and WP_Image_Editor_GD, and WordPress walks it in order until one class passes its test() check. The June 16 core performance chat spent a good part of its hour on a proposal to add a libvips-based engine to the WordPress image editor lineup. The summary on Make WordPress Core is short, but the libvips discussion matters for stores that push large product photos around.
What libvips would solve
Memory, mostly. Every upload runs through multi_resize(), which generates every registered thumbnail size in the same request. With Imagick, the full source image is decoded into memory first. A 6000 x 4000 JPEG is about 72 MB of decoded pixels at 3 bytes per pixel, before the working copies each resize needs. On shared hosting with a 256 MB PHP limit, batch product uploads are one of the usual causes of the generic “HTTP error” in the media library.
libvips takes a different route. The library describes itself as demand-driven and horizontally threaded, which in practice means it streams pixels through an operation graph instead of holding a full decoded buffer in RAM. It already powers sharp in Node and imgproxy, so the design holds up outside WordPress. In the chat, nickchomey argued it beats Imagick on CPU and memory, and a Trac ticket proposing a core image editor based on it was about to be published.
Swapping the image editor today
You can, and this is the part I would act on. The wp_image_editors filter has existed since 3.5. You register a class that extends WP_Image_Editor, implement the load, save and resize methods, and give it a static test() that returns true only when the engine is available. When test() fails, WordPress falls back to the next class in the array, so a vips editor can sit ahead of Imagick and sites without the library keep working unchanged.
The engine still has to exist on the server, though. libvips is a compiled C library and PHP reaches it through the php-vips extension, which most shared hosts do not install. On a VPS you control, installing the libvips runtime plus the PECL extension gives you something real to test. On rented hosting, you wait.
Two caveats if you try it. Swapping the editor only affects new uploads, so old thumbnails keep whatever engine made them until you run wp media regenerate. And engines are not pixel-identical at the same quality setting, so a regenerate after a switch will shift file sizes and sharpness across the whole library. Test on a copy of the uploads directory, not live media.
Why core support has to come first
In the chat, westonruter agreed that core support would likely be necessary before hosting providers prioritize adoption, and that adoption would be gradual either way. That matches how hosting works. Hosts ship a fixed PHP build and compile what core needs, and none of them will add a library plus an extension for one client’s plugin. Core support changes the calculation, because it makes the library something every host has to test against.
The fallback design is what makes gradual adoption plausible: a vips engine ahead of Imagick with a strict test() can be enabled server by server, and sites that never get it lose nothing. The chat also paired this with client-side vips-based image processing expected for 7.1, which would cover images edited in the browser while a server-side editor covers imports and API uploads. How the client-side piece handles phone formats like HEIC is the kind of detail the ticket still has to settle.
The rest of the chat, and what to check this week
Two areas were named as 7.1 candidates: View Transitions on the frontend and Enhanced Responsive Images. Both are feature plugins and need more iteration before a merge proposal, so nothing is imminent. Enhanced Responsive Images is getting Gallery block support in the performance repo, which continues the auto-sizes and Gallery block work I wrote about before. Optimization Detective stays on the list as the area to keep moving.
The plugin news was quieter. A Performance Lab release was planned for Thursday with whatever merged by then, because recent work went into environments, tests and minimum version bumps rather than features. Ticket #65215 is close to landing and needs one more review, and there are a lot of PRs sitting in review across the milestones. The reason performance work moves slowly is usually review capacity.
This week I would open Site Health, Info, Media handling on image-heavy client sites and confirm which editor is active, then cap the maximum upload dimensions before shop managers push 8000px photos. Stores where regeneration keeps timing out have the same problem from another angle, and I wrote about handling large image libraries separately. If you want help testing a vips-based editor on staging or auditing the image pipeline before 7.1, that is work I take on.