Search by

akqa / silverstripe-image-optimiser-report

wilrmadmattJacknz

CMS report and tooling to assess and replace PNG assets with smaller WebP equivalents

Package info

github.com/WPP-Public/akqa-silverstripe-image-optimiser-report

Type:silverstripe-vendormodule

pkg:composer/akqa/silverstripe-image-optimiser-report

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-10-29 03:12 UTC

README

CMS report and tooling that trials WebP conversions for PNG assets, surfaces worthwhile candidates, and lets editors replace originals in place.

Installation

composer require akqa/silverstripe-image-optimiser-report

Run dev/build after installing so the WebP assessment columns are added to File.

Usage

  1. Queue assessment of unassessed PNG files:

    sake tasks:WebpConversionTask --queue

    Or queue the bulk conversion of every currently worthwhile candidate:

    sake tasks:WebpConversionTask --convert

    Or assess a small batch inline:

    sake tasks:WebpConversionTask --assess --limit=10
  2. Open Reports → Image conversion report in the CMS.

  3. Use Queue assessment or Queue conversion to process files in the background, or filter to Not yet assessed and assess files one at a time.

  4. Preview PNG vs WebP, then use Replace with WebP on candidates you want to swap. The File record ID is preserved so existing relations follow.

Configuration

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

Requirements

  • PHP ^8.3
  • Silverstripe Framework ^6
  • symbiote/silverstripe-queuedjobs ^6