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.
Public API
Section titled “Public API”__construct(bool $gd, bool $imagick, bool $webp, bool $avif)
Section titled “__construct(bool $gd, bool $imagick, bool $webp, bool $avif)”detect(): self
Section titled “detect(): self”canConvert(): bool
Section titled “canConvert(): bool”A converter (GD or Imagick) exists.
canWebp(): bool
Section titled “canWebp(): bool”WebP can actually be written.