CMS report and tooling that trials WebP conversions for PNG assets, surfaces worthwhile candidates, and lets editors replace originals in place.
composer require akqa/silverstripe-image-optimiser-reportRun dev/build after installing so the WebP assessment columns are added to
File.
-
Queue assessment of unassessed PNG files:
sake tasks:WebpConversionTask --queue
Or assess a small batch inline:
sake tasks:WebpConversionTask --assess --limit=10
-
Open Reports → Image conversion report in the CMS.
-
Use Queue assessment to process files in the background, or filter to Not yet assessed and assess files one at a time.
-
Preview PNG vs WebP, then use Replace with WebP on candidates you want to swap. The
Filerecord ID is preserved so existing relations follow.
Override defaults in your project _config:
Akqa\SilverStripe\ImageOptimiser\Services\WebpConversionService:
quality: 85
minimum_saving_percent: 5.0
batch_size: 25
minimum_file_size: 10240- PHP ^8.3
- Silverstripe Framework ^6
symbiote/silverstripe-queuedjobs^6