DEV: System specs for image optimization in composer (#36060)

Followup 66cee823ab

Introduces a few basic system specs to verify that image optimization is
working as expected when uploading images via the composer. The specs
check
that images are optimized and that the optimization process completes
successfully
for both png and jpg images.

This PR also improves the formatting of optimization logs, including
adding
information about the original image size in bytes
This commit is contained in:
Martin Brennan
2025-11-19 11:37:15 +10:00
committed by GitHub
parent 1b9e5b7d1b
commit 2942ef375d
4 changed files with 147 additions and 15 deletions
@@ -9,6 +9,7 @@ onmessage = async function (e) {
e.data.fileName,
e.data.width,
e.data.height,
e.data.originalFileSize,
e.data.settings
);
postMessage(