JpegOptions
Sets JPEG encoder options.
imgproxy: jpeg_options (alias jpgo) · Availability: imgproxy Pro only
use SomehowDigital\ImgProxy\Url;use SomehowDigital\ImgProxy\Option\JpegOptions;
$url = Url::create() ->source('https://example.com/image.jpg') ->options(new JpegOptions(true, false, true));
$url->build();// _/jpgo:1:0:1/plain/https%3A%2F%2Fexample.com%2Fimage.jpgThe option appears in the URL as jpgo:1:0:1.
Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
$progressive |
bool |
— | Write a progressive JPEG. |
$noSubsample |
bool |
— | Disable chroma subsampling. |
$trellisQuant |
bool |
— | Use trellis quantization. |
$overshootDeringing |
bool |
— | Use overshoot deringing. |
$optimizeScans |
bool |
— | Optimize progressive scans. |
$quantTable |
int |
— | Index of the quantization table. |
A dash means the argument can be left out. Trailing arguments that are left out or null are dropped from the URL, while a null before a given argument leaves an empty slot, so the following arguments keep their position.
- All arguments are optional.