# Clarendon WordPress media variant optimisation audit

Generated: 2026-06-24 09:59:15 AEST

## Scope
- Site: clarendon.vic.edu.au
- Uploads path audited: `/home/clarendo/automation/clarendon/constants/uploads`
- Read-only audit. No files were modified on the server.
- Variant definition: filenames matching WordPress resized-image pattern like `-300x200.jpg` / `-2048x1536.png`. Originals were excluded from savings estimate.

## Inventory
- Uploads total: 14.69 GiB across 41,306 files
- All images: 11.50 GiB across 39,896 files
- Generated variants: 5.49 GiB across 36,811 files
- Original images: 6.02 GiB across 3,085 files

## Estimated savings from optimising all variants
- Estimated saving: 0.91 GiB (934 MiB)
- Variants after optimisation: 4.58 GiB
- Reduction of variant footprint: 16.6%

| Ext | Variant files | Current size | Estimated saving | Reduction |
|---:|---:|---:|---:|---:|
| .jpg | 34,093 | 4666.3 MiB | 906.6 MiB | 19.4% |
| .png | 1,702 | 817.0 MiB | 21.8 MiB | 2.7% |
| .jpeg | 973 | 129.9 MiB | 5.0 MiB | 3.8% |
| .webp | 43 | 6.9 MiB | 1.1 MiB | 15.4% |

## Method
- Crawled 252 upload directories through cPanel Fileman API.
- Downloaded and locally optimised a stratified sample of 961 variant images (350.9 MiB sample).
- JPEG/JPEG variants: recompressed as JPEG quality 85, optimise, progressive, metadata stripped.
- PNG variants: lossless Pillow PNG optimise/compress level 9 only.
- WebP variants: recompressed quality 82/method 6.
- Weighted the observed saving ratios by extension + size decile strata across the full variant population.

## Notes
- SSH port 22 was not reachable from this environment; cPanel/FTPS were reachable. This audit did not require server-side shell execution.
- Actual savings will vary if we choose different quality settings, use `jpegoptim`/`jpegtran`/`optipng`/`pngquant`, or include originals as well as variants.
- Biggest saving pool is `.jpg` variants; PNG lossless optimisation is comparatively small.
