WP Manifestindependent plugin directory
manifest / performance / wp-background-image-processing

WP Background Image Processing

A plugin to move resizing of images into a queue and away from the upload script

★ 6stars

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/darylldoyle/wp-background-image-processing/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WP Background Image Processing is a basic plugin that moves than handling of resizing images into a background process. This hopefully reduces a huge amount of load on the upload handler meaning less timeouts.

Built upon on the WP Background Processing library.

How it works?

This plugin works by hooking into the intermediate_image_sizes_advanced filter which is ran right before WordPress starts resizing images, if this filter returns false, images won't be resized.

Knowing this, we can hook in using this filter. Add our image resizing to the queue and then return false, effectively telling WordPress not to resize in the upload script.

After each image size is created from the queue, we update the image metadata so WordPress knows we have the sizes available.