AutoRotate
Applies the EXIF orientation of the source and removes the tag.
imgproxy: auto_rotate (alias ar) · Availability: all editions
use SomehowDigital\ImgProxy\Url;use SomehowDigital\ImgProxy\Option\AutoRotate;
$url = Url::create() ->source('https://example.com/image.jpg') ->options(new AutoRotate(false));
$url->build();// _/ar:0/plain/https%3A%2F%2Fexample.com%2Fimage.jpgThe option appears in the URL as ar:0.
Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
$rotate |
bool |
true |
false disables the automatic rotation. |
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.