MediaServiceProvider
Corex\Media\MediaServiceProvider · class · Add-ons layer
The optional Corex Media add-on (spec 048; settings + regeneration spec 061): converts uploads to WebP when the server supports it (original preserved), exposes the {@see MediaImage} helper + an advisory image-support probe, and registers the wp corex media regenerate-webp command. The conversion respects {@see MediaSettings} (enable/quality/per-format) read from Config. Self-gating (Principle IX) — with no GD/Imagick/WebP it adds no conversion and the helper degrades to <img>.