GoBuildWP
Free5 abilities

Image optimisation ability reference

Reference for the GoBuildWP Free 1.22.1 source. Installed schemas and policy remain authoritative.

This Image optimisation ability reference lists every call GoBuildWP Free registers for Image optimisation, with the exact slug an agent sends and what the plugin's own contract says it does. Of the 5, 2 read, 1 writes and 2 are marked destructive in the source.

Read-only, write and destructive groups describe the source annotations. They do not establish a minimum safety profile, human approval or undo support. Those controls are separate: check the installed ability, the connected user and the active site policy before calling it. A read can still return sensitive data. These pages are not evidence that every operation passed an end-to-end runtime test.

What Image optimisation needs before these load

Image optimisation ships inside GoBuildWP Free 1.22.1, so none of its 5 calls waits on a licence. Whether a connected agent sees a given call still depends on the site's safety profile and the capabilities of the user behind the credential.

Image optimisation reads

AbilityWhat it does
gobuildwp/image-optimize-estimateEstimate Image OptimisationDry run of gobuildwp/image-optimize-run with the same settings. Plans up to scan JPEG/PNG images from their metadata (which would be resized, which are skipped and why, total bytes) and really encodes up to sample of them in the temp folder, deleting the results, to measure the saving on this site. Page through a large library with next_cursor. Changes nothing.
gobuildwp/image-optimize-statusImage Optimisation StatusReports the web server (and whether rewrite rules could be trusted on it: OpenLiteSpeed ignores .htaccess by default), which formats the image editor can write (WebP, AVIF), how optimised copies are served, how many JPEG/PNG images there are and how many are optimised, and where the bulk run stopped. Changes nothing.

Image optimisation writes

AbilityWhat it does
gobuildwp/image-optimize-servingSet How Optimised Images Are ServedTurns serving of the WebP/AVIF copies on (mode picture) or off. With picture, front-end images of optimised attachments, in post content and wherever wp_get_attachment_image() renders them, are wrapped in <picture> with AVIF/WebP <source> elements; an image is wrapped only when every file in its srcset has a copy. This is markup, so it works on OpenLiteSpeed and nginx, where .htaccess rewrite rules are ignored; the kit never writes server rules. Check the front end afterwards: a theme that styles img as a direct child (figure > img) may need a CSS tweak.

Destructive Image optimisation calls

AbilityWhat it does
gobuildwp/image-optimize-restoreRestore Optimised ImagesUndoes gobuildwp/image-optimize-run for the given attachment_ids: moves the kept original back over the optimised file, restores its recorded width, height and size, and deletes the WebP/AVIF copies. Refused for an image whose file was renamed or edited since. Running gobuildwp/image-optimize-run again redoes it. Destructive: deletes the optimised files, requires explicit confirmation.
gobuildwp/image-optimize-runOptimise ImagesOptimises JPEG/PNG images with the site's own image editor (GD or Imagick; nothing leaves the site). For each image: resizes an original larger than max_dimension and recompresses it at quality, replacing the file only when the result is smaller (or was resized) and keeping the old original next to it as <name>.optimize-backup.<ext>; then writes WebP/AVIF copies of every size, keeping only copies smaller than their source. Already optimised images are skipped. Give attachment_ids, or let it work through the library: it does limit images per call (stopping early after about 20 seconds), remembers where it stopped, and returns next_cursor until done is true. Each image is recorded so the change log can put the original back; gobuildwp/image-optimize-restore does the same by id. Run gobuildwp/image-optimize-estimate first. Destructive: replaces originals, requires explicit confirmation.