ColorProfile
Converts the image to a color profile and embeds it.
imgproxy: color_profile (alias cp) · Availability: imgproxy Pro only
use SomehowDigital\ImgProxy\Url;use SomehowDigital\ImgProxy\Option\ColorProfile;
$url = Url::create() ->source('https://example.com/image.jpg') ->options(new ColorProfile('cmyk'));
$url->build();// _/cp:cmyk/plain/https%3A%2F%2Fexample.com%2Fimage.jpgThe option appears in the URL as cp:cmyk.
Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
$profile |
string |
required | srgb, cmyk, or the file name of a custom profile in imgproxy’s color profiles directory. |