Skip to content
Corex

ImageCapability

Corex\Media\ImageCapability · class · Add-ons layer

What the server can do with images (spec 048): GD / Imagick presence and WebP / AVIF support. A pure value object (so it is unit-tested) + a static detect() boundary that reads the runtime. Conversion is gated on canWebp(); absence is never an error.

__construct(bool $gd, bool $imagick, bool $webp, bool $avif)

Section titled “__construct(bool $gd, bool $imagick, bool $webp, bool $avif)”

A converter (GD or Imagick) exists.

WebP can actually be written.