From 1781aff7edd852a43f4e1385b7d6a1917f8f8aa1 Mon Sep 17 00:00:00 2001 From: Nolimit release Date: Mon, 23 Nov 2026 20:45:19 +0000 Subject: [PATCH] Update the public pages to 0.3.5 --- docs/README.md | 7 ++++--- docs/SETUP.md | 13 ++++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/README.md b/docs/README.md index 7020039..675b726 100644 --- a/docs/README.md +++ b/docs/README.md @@ -18,8 +18,9 @@ others, and to your own code. oEmbed machinery, and can rewrite asset URLs to a CDN. - **Images.** Writes WebP (and optionally AVIF) copies beside JPEG and PNG files and offers them with ``, so the page cache stays correct for - every browser. The images pages use are never touched; an administrator can - delete the unused full-size uploads and editor backups of converted images. + every browser. Optionally saves PNG photographs as JPEG, on upload and for the + existing library (references rewritten, 30 days to undo); an administrator can + delete the leftover full-size uploads and editor backups of converted images. - **Preloading.** Walks a queue of URLs on a five-minute cron so the first real visitor does not pay for the first render. - **Purging.** Clears the right pages when a post, a term, a comment or a @@ -47,7 +48,7 @@ others, and to your own code. | Drop-ins | `wp-content/advanced-cache.php`, `wp-content/object-cache.php` | | REST namespace | `nlcac/v1` | | Requires | WordPress 6.0, PHP 7.4. WooCommerce optional | -| Version | 0.3.4 | +| Version | 0.3.5 | ## Reading order diff --git a/docs/SETUP.md b/docs/SETUP.md index bb1188d..539a5eb 100644 --- a/docs/SETUP.md +++ b/docs/SETUP.md @@ -44,7 +44,18 @@ next to your JPEG and PNG files and offers them to browsers that understand them. The originals are never touched, so switching it off, or deleting the copies, leaves the site exactly as it was. -Below the conversion, **Unused source files** (administrators only) deletes +**PNG photos to JPEG.** Tick *Save uploaded PNG photos as JPEG* and a PNG +without transparency is saved as JPEG (quality 90 by default) the moment it is +uploaded. For the existing library, **Convert PNG photos to JPEG** +(administrators only) does the same to every PNG image and rewrites every +reference to it — posts, products, page-builder data, categories and settings. +Transparent images, and those where JPEG would not be at least half the size, +stay PNG. The PNG files are kept for 30 days and then deleted; **Undo** puts +everything back until then, and old links to a PNG are redirected to its JPEG. +On the command line: `wp cache-manager images png-to-jpeg` and +`png-to-jpeg-undo`. + +Below that, **Leftover originals** (administrators only) deletes what WordPress keeps and no page shows — the full-size upload behind every photo it scaled down, and the earlier versions of images edited in the media library — for images that have been converted. It tells you how many files and