Skip to content
Shops & CMS

Images in the browser: what WordPress 7.1 changes on upload

WordPress 7.1 resizes and encodes images in the browser during upload. What that changes for files, formats, GIFs and server load, and how to measure it.

18 min read WordPressBildoptimierungAVIFWebP

In short and in plain language

WordPress 7.1 can edit images right in the browser. This happens during the upload. The browser makes the images smaller. It also makes small versions for the page.

This only works in Chrome, Edge and similar browsers. Firefox and Safari send the image to the server as before. The server then does the work.

This gives the server less work. Images for visitors can get a bit smaller. But more data goes over the network during the upload.

WordPress can turn moving GIF images into a short video. A video is usually much smaller than a GIF. The editor has to switch the video on by hand.

We check which way your site uses. Then we compare image sizes and loading time before and after.

Since WordPress 7.1, many uploads are no longer processed by the server but by the editor's browser. When someone uploads a photo in the block editor using Chrome or Edge, it is resized, compressed, rotated and split into every sub-size right on their own device; the server only receives the finished files. The release shipped on August 19, 2026 (Make WordPress Core), and the feature is switched on by default in supporting browsers. A good three months later, the interesting question is less the novelty than the consequences: which files have been landing in the media library since then, are they smaller or just different, what happens to image plugins that used to compress on upload, and why do images uploaded from Firefox and Safari differ from those uploaded from Chrome? This article explains what stays the same, what changes in the images you deliver, how animated GIFs turn into video and how to measure cleanly before and after.

Key takeaways

  • WordPress 7.1 (released on August 19, 2026, Make WordPress Core) processes images in the browser via WebAssembly when they are uploaded in the block editor: resizing, compression, format conversion, rotation and sub-size generation.
  • The full browser path runs only in Chromium from version 137 (Make WordPress Core) and needs more than 2 GB of memory and two CPU cores (Block Editor Handbook). Firefox and Safari send the original to the server without any visible notice.
  • According to the dev note, JPEGs produced in the browser come out about 15 percent smaller (Make WordPress Core). A switch to WebP or AVIF only happens if the image_editor_output_format filter asks for it.
  • Opaque animated GIFs are additionally stored as MP4 or WebM. Only when the editor switches the block to video does the visitor load the video instead of the GIF (Block Editor Handbook).
  • The server saves CPU time and PHP memory, but upload volume grows: the browser sends the original and every sub-size separately, and the first use adds about 13 MB of worker code (Block Editor Handbook).
  • Image plugins on the wp_generate_attachment_metadata filter run twice per upload on the browser path, hooks such as image_make_intermediate_size not at all. Comparing each sub-size and checking LCP in the field shows whether the switch pays off.

What WordPress 7.1 moved on upload

Until now, image processing ran entirely on the server. When someone uploads a photo in the block editor, PHP uses GD or Imagick to generate the sub-sizes for the front end, converts formats, rotates the image according to its EXIF data and scales down very large files. That path depends on the PHP memory limit, on free server CPU and on the installed image library (Make WordPress Core). Two hosts running the same WordPress version can therefore produce thumbnails of different quality, depending on which library in which version is installed there.

WordPress 7.1 moves this work into the browser (Make WordPress Core). It is built on wasm-vips, a WebAssembly build of the libvips image library that runs in a Web Worker and therefore does not block the editor interface. The browser takes over compression, resizing, format conversion, rotation and sub-size generation; in supporting browsers the feature is active by default. The server stores the finished files, validates them and closes the process with its own finalize step, after which the familiar filters for image metadata run once more.

The idea is not entirely new. Browser processing was already planned for WordPress 7.0 and was taken out again before release: the worker alone would have added about 16 MB to the build, too much for the value it offered at the time (GitHub wordpress-develop). The call for testing for 7.1 accordingly names download weight and the lack of new capabilities as the main feedback from the 7.0 cycle; the WebAssembly part has since been loaded only on the first upload (Make WordPress Core). Articles that attribute the feature to WordPress 7.0 therefore describe a state that did not ship in that form.

Why this matters beyond individual editorial teams: WordPress runs on roughly 64 percent of websites with a detectable CMS (Web Almanac 2025). A change to the upload pipeline therefore affects a large share of the images visitors get to see at all, and it does so without any theme or plugin having to be adapted. Precisely because the switch happens silently, it is worth taking a deliberate look at what has been landing differently in the media library since the update.

Two paths from upload to image file

For delivery, all that ultimately counts is which files sit in the uploads directory and how WordPress offers them in the markup. On the way there, however, the browser path and the server path differ at several points that matter for performance and operations. The table summarizes them based on the dev note (Make WordPress Core).

AspectBrowser path (Chromium)Server path (all others)
Who processeseditor's device, wasm-vips in a Web Workerweb server with GD or Imagick
What is transferredoriginal and every sub-size separatelyonly the original
Image qualityconsistent through libvips, independent of the hostdepends on library and version on the server
Large photosbrowser memory, no PHP memory limitPHP memory limit and time limit apply
AVIF as uploadeven without AVIF support on the serveronly if the server's image editor supports AVIF
Server-side image hookswp_image_editors and image_make_intermediate_size do not firefire as before

An important point for context: the dev note explicitly describes browser processing as an optimization, not a trust boundary. The server still validates every uploaded file for type, dimensions and capabilities and runs the same metadata filter chain (Make WordPress Core). Anyone who has to sign off uploads from a security perspective should still know one detail: for client-decoded uploads, the MIME type check that previously rejected formats the server's own image editor could not handle is bypassed. That is exactly how WordPress accepts AVIF even on hosts without server-side AVIF support.

According to the dev note, nothing changes for themes. Sizes registered via add_image_size() are generated by the browser automatically, and sizes with identical dimensions end up as a single file on disk, registered under all matching names (Make WordPress Core). srcset, sizes and the image block markup stay as they are. What changes are the bytes inside the files, and that is exactly where the review starts. How sizes picks the right width is covered in our article on oversized images despite srcset.

When the browser path applies

The browser path needs SharedArrayBuffer, and browsers only expose it to documents that run in a secure context and are cross-origin isolated (MDN Web Docs). WordPress achieves this isolation in the editor with the Document-Isolation-Policy header. Chrome and Edge have supported it since version 137, released in mid-2025 (Make WordPress Core); Chrome for Android follows from version 146 (MDN Browser Compat Data). Firefox and Safari do not support the header (MDN Browser Compat Data) and therefore upload through the server as before. Safari on macOS still converts iPhone photos in HEIC format to JPEG in the browser, because that part works without isolation (Make WordPress Core). In addition, the editor checks the device and environment before every upload:

  • Memory: devices reporting 2 GB or less are excluded, because the full image plus working buffers is held in memory (Block Editor Handbook).
  • Processor: at least two cores, so the worker does not slow down the interface while encoding (Block Editor Handbook).
  • Network: no 2G or slow-2G connection and no Save-Data header, because the worker downloads about 13 MB on first use (Block Editor Handbook).
  • Content Security Policy: worker-src must allow blob:, otherwise the worker cannot start (Make WordPress Core).
  • Switch: the wp_client_side_media_processing_enabled filter must not have turned the feature off.

If any of these checks fails, WordPress falls back to the server path without an error message and without any visible difference (Make WordPress Core). For editorial teams that is convenient; for a performance analysis it is a trap. The same media library then holds images from two pipelines side by side. What one editor uploads in Chrome was encoded by libvips; what her colleague uploads in Safari on a Mac was generated by the image library on the server. Both files follow the same naming scheme and have the same dimensions, yet they differ in file size and visual result.

One team, two image pipelines

Mixed browsers in the editorial team mean mixed results in the media library. Before you compare file sizes before and after the update, you should know which upload came from which browser. Otherwise the comparison measures the team's choice of browser rather than the processing.

A second point concerns the ways into the media library. The dev note describes uploads in the block editor; WordPress sends the isolation header on the post editing screens, in the site editor and for widgets. In the call for testing from June, uploading through the media library explicitly served as the server-processing baseline for comparison (Make WordPress Core). If product images, galleries or campaign graphics are uploaded through other screens, do not assume that every file went through the browser; check the network log instead.

What changes in the images you deliver

For visitors, only what is finally delivered counts. Images are the largest item: the median mobile home page loaded 911 KB of image data in 2025, more than JavaScript or fonts (Web Almanac 2025), and on 76 percent of mobile pages an image is the LCP element (Web Almanac 2025). Every byte saved on the sub-sizes WordPress offers in srcset therefore has a direct effect on Largest Contentful Paint.

The dev note states that JPEGs produced in the browser are about 15 percent smaller, because libvips compresses better than the usual server libraries using MozJPEG-like encoding (Make WordPress Core). That is a figure from the project, not an independent measurement, and it depends on the quality level. If the browser receives no quality value from the server, it falls back to 0.82 (Make WordPress Core); existing filters such as wp_editor_set_quality and, for JPEG, jpeg_quality still apply and are resolved per registered size. If you previously lowered the quality for small thumbnails, that setting stays in place.

The browser path does not change the format on its own. JPEG stays JPEG unless the image_editor_output_format filter asks for a conversion (Make WordPress Core). That matters because the old format still dominates: 57 percent of LCP images were JPGs in 2025 (Web Almanac 2025), and JPEG still accounted for 32 percent of all images on the web in 2024 (Web Almanac 2024). If you want to deliver WebP or AVIF, set the filter as before; the browser respects it and generates the sub-sizes directly in the target format. Which formats suit which purpose is covered in our overview of WebP, AVIF and responsive delivery.

What is new is AVIF acceptance. Hosts whose PHP image editor cannot handle AVIF accept AVIF uploads as soon as the browser decodes them; sources with 10 or 12 bit color depth keep that depth in their sub-sizes (Make WordPress Core). Photos with an HDR gain map are uploaded unmodified and deliberately not converted to another format, because the gain map would be lost. For delivery this means that a filter meant to convert everything to WebP does not apply to these files; they arrive as JPEG with a gain map.

Everything that happens after the upload stays the same: lazy loading, fetchpriority for the LCP image, width selection via sizes and file caching. An oversized hero image stays oversized, even if it is compressed slightly better. The bigger levers usually remain the right width and priority; browser processing makes good image pipelines a little better, it does not make bad ones good. For the fundamentals of the image pipeline, our service page on image optimization is the place to start.

Animated GIFs become video

The most visible change concerns animated GIFs. When someone uploads an opaque animated GIF on the browser path, the browser additionally converts it to MP4 or WebM via the WebCodecs APIs and stores a poster taken from the first frame (Make WordPress Core). The GIF remains the attachment in the media library; the video and poster are attached as companion files and are deleted together with the GIF.

Visitors only receive the video once the editor switches the block. According to the handbook, the block is not swapped automatically: the editor chooses the video display in the image block toolbar, and the front end then renders a native video element with autoplay, loop, muted playback and a poster (Block Editor Handbook). The swap can be reversed. Transparent GIFs stay images, because a video cannot reproduce transparency; GIFs inside galleries, Media & Text blocks and the Cover block remain untouched. Firefox uploads the original GIF without an error, because it lacks the required video encoding (Make WordPress Core).

An example from web.dev shows how much this can save: the same animation weighs 3.7 MB as a GIF, 551 KB as MP4 and 341 KB as WebM (web.dev). For tutorials, product demos or animated campaign notices, the switch is one of the few steps an editorial team can take without technical help that noticeably cuts bytes. For the LCP element, the usual video rule then applies: the poster becomes the candidate and should be small and available early. More on this in our article on load times caused by video.

Older GIFs in the media library are not affected, because the conversion happens on upload. There is no separate filter just for turning off GIF conversion; it is only disabled together with the entire browser processing (Block Editor Handbook). If you do not want animated graphics delivered as video at all, handle it through an editorial guideline rather than a switch.

Server load and upload volume

The dev note sees the biggest gain not in bandwidth but on the server. The browser sends the original and every sub-size, so more bytes in total than the server path, which receives only the original. In return, the host no longer spends CPU time and memory on the image library, which the dev note calls one of the most common causes of PHP timeouts and memory-limit failures on shared hosting (Make WordPress Core). Large photos that used to fail at the PHP memory limit now go through in the browser's memory.

For operations this means that load peaks that used to coincide with editorial upload waves flatten out when the team works in Chromium. At the same time, the number of REST API requests rises, because every size is uploaded separately through its own endpoint. The editor limits this to at most five concurrent uploads and two concurrent image processing operations (Make WordPress Core); failed steps are retried with growing intervals, and uploads pause while offline. Rate limiting or a firewall that treats many short REST requests from one user as an attack can slow this path down and belongs in the review. For the server side as a whole, server optimization is the right framework.

The middle of Black Week is not a good time to rebuild the upload pipeline. The week is well suited for observation, though: if you upload many campaign images now, server monitoring and the media library show how the two paths behave in daily use, and you will have real material for the evaluation in December. Where fluctuating response times on shared machines can otherwise come from is covered in our article on fluctuating response times on virtual servers.

Image plugins, filters and security headers

Many WordPress sites use an image plugin that compresses on upload, converts to WebP or adds watermarks. The dev note reassures on one point and warns on another. The wp_generate_attachment_metadata filter keeps running, and it runs twice: once with the context create during the initial upload and once with update after the finalize step has registered all sizes (Make WordPress Core). Plugins have to handle both passes without doing the work twice. Server-side hooks such as wp_image_editors, image_memory_limit and image_make_intermediate_size, on the other hand, no longer fire at all, because no image editor runs on the server. This leads to typical duplicate or missed work that we look at in reviews:

  • An optimization plugin compresses the sub-sizes already encoded by libvips a second time. That can cost image quality without saving many bytes.
  • A plugin converts to WebP although image_editor_output_format already does this in the browser. Duplicate versions then sit on disk, and it is unclear which one is delivered.
  • A plugin hooks into image_make_intermediate_size and does not run on the browser path at all. Images from Chrome then stay unprocessed, images from Firefox do not.
  • A watermark plugin applies its mark again during the second pass if it does not check whether it has already run.

Security headers come on top. If a plugin or the server sets a Content Security Policy, worker-src must include blob:, otherwise processing falls back to the server (Make WordPress Core). For Firefox and Safari there is a plugin that enables the feature through classic isolation headers; WordPress deliberately does not use these headers by default, because they interfere with embeds and other third-party resources. The editor itself changes too: external scripts automatically receive crossorigin="anonymous" there, and images from external addresses are imported into the media library by the server instead of the browser (Make WordPress Core). Page builders that rely on same-origin iframes remain usable according to the note, because the header is not sent on admin pages without an edit action.

Control, disable, set quality

The familiar settings still apply on the browser path, because the browser reads them from the server. That covers the threshold for very large images (big_image_size_threshold, default 2,560 pixels, Block Editor Handbook), the output format, progressive encoding, EXIF rotation and the quality level per size (Make WordPress Core). The only new piece is the switch for the feature itself. The list of file types the browser processes, by contrast, is fixed: JPEG, PNG, GIF, WebP and AVIF, so five types, with no filter to extend it (Make WordPress Core). The following lines show the three filters needed most often in practice:

wp-content/mu-plugins/image-processing.php
<?php
// Disable browser processing, e.g. when you run your own image pipeline
add_filter( 'wp_client_side_media_processing_enabled', '__return_false' );

// Store JPEG uploads as WebP, applies to browser and server path
add_filter( 'image_editor_output_format', function ( $formats ) {
    $formats['image/jpeg'] = 'image/webp';
    return $formats;
} );

// Compress small thumbnails more, leave large sizes unchanged
add_filter( 'wp_editor_set_quality', function ( $quality, $mime_type, $size ) {
    if ( isset( $size['width'] ) && $size['width'] <= 300 ) {
        return 60;
    }
    return $quality;
}, 10, 3 );

Disabling makes sense if your own image pipeline or an image CDN generates the variants anyway, if a strict Content Security Policy is not supposed to allow blob: workers, or if all images demonstrably have to come from a single, reviewed pipeline. In most other cases there is little reason not to let the feature run, provided plugins and filters are aligned with both paths. Incidentally, anyone who regenerates sub-sizes later, for example via WP-CLI after a theme change, is working on the server again, because no browser is involved; the regenerated files then come from the server library again.

Measure before and after

Whether the switch helps your site is not shown by an announcement but by a comparison using the same images. This is how we go about it:

  1. Identify the path: in the editor's browser console, window.__clientSideMediaProcessing shows whether processing is active; alternatively, requests to the sideload endpoint appear in the network log (Make WordPress Core).
  2. Choose a test set: ten typical images from the editorial team's daily work, including a large camera photo, a screenshot with text, a PNG with transparency and an animated GIF.
  3. Upload twice: once in Chromium with the feature active, once with the filter disabled or in Firefox. The bytes per sub-size can be read in the uploads directory, and the REST response additionally includes the new filesize field.
  4. Compare per sub-size: bytes, dimensions and visual result at full size, plus an SSIM score if needed. Gradients, skin tones and fine text are the most telling.
  5. Cross-check plugins: if an optimization plugin runs afterwards, compare the files before and after its pass.
  6. Measure in the field: LCP of templates with new images via your own field data or the Chrome UX Report, after several weeks at the earliest and separated by template.

Two measurement traps come up regularly. First, the feature only affects new uploads; the existing media library stays as it is, and a home page with old hero images shows no difference in the field. Second, files from the two paths are only comparable if the same filters apply. If you change the output format or quality level between the two uploads, you are comparing settings rather than pipelines. Which metric counts and how lab and field data fit together is described on our page about Core Web Vitals.

How we review the image pipeline of a WordPress site

In a review of WordPress performance, the upload pipeline has been part of the image analysis since 7.1. We establish which browsers the editorial team uses and which path actually runs, compare file sizes and quality per sub-size, align image plugins, format filters and security headers with both paths and decide with you whether the feature stays, is adjusted or is disabled. We then measure the effect on the LCP of your most important templates. The other slowdowns of a WordPress site, from page builders to the database, are covered in our article on common WordPress slowdowns; an inventory of all levers comes from the technical analysis.

The effort stays manageable, because the review relies on tools you already have: the network log, REST responses, the media library and field data. What it delivers depends on the starting point. A site with properly configured sizes and modern formats gains a little per image from the better encoding; a site where two image plugins and two upload paths work against each other mainly gains order and predictable files. If you then want to tackle delivery in the browser as a whole, front-end optimization provides the framework; for the image pipeline itself, our image optimization service remains the point of contact.

Sources and documentation

This article is based on data from: Make WordPress Core (dev note Client-Side Media Processing in WordPress 7.1, WordPress 7.1 release page, call for testing Client-Side Media Processing); Block Editor Handbook (Client-Side Media Processing); GitHub wordpress-develop (pull request removing the feature from WordPress 7.0); MDN Web Docs (SharedArrayBuffer); MDN Browser Compat Data (Document-Isolation-Policy); HTTP Archive Web Almanac 2025 (chapters CMS, Page Weight, Performance) and Web Almanac 2024 (chapter Media); web.dev (Replace animated GIFs with video).

Related Articles

Server & hosting

Fluctuating Response Time: When Your Server Shares CPU

Response time swings with no change to your shop? Shared CPU time may be the cause. How to measure steal time, run the counter-checks and choose a remedy.

20 min read
Front-end optimisation

CPU Tier in the Browser: Lighten Shops on Low-End Devices

Chrome 152 reports a device performance tier via the CPU Performance API. See how shops serve lighter profiles to weak phones and verify INP in the field.

19 min read
Core Web Vitals & measurement

Live metrics in the browser: check LCP, INP, and CLS

Lighthouse shows one number, Search Console another: how to read Live Metrics in Chrome, add CrUX field data, and test five click paths through your shop.

20 min read