|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Collaboration diagram for ILIAS\Filesystem\Util\Convert\ImageOutputOptions:Public Member Functions | |
| withFormat (string $format) | |
| @description set the desired output format. More... | |
| withJpgOutput () | |
| @description set the output format to JPG More... | |
| withPngOutput () | |
| @description set the output format to PNG More... | |
| withWebPOutput () | |
| @description set the output format to WEBP More... | |
| withQuality (int $image_quality) | |
| @description set the image compression quality. More... | |
| getFormat () | |
| getQuality () | |
Data Fields | |
| const | FORMAT_JPG = 'jpg' |
| const | FORMAT_PNG = 'png' |
| const | FORMAT_WEBP = 'webp' |
| const | FORMAT_KEEP = 'keep' |
Protected Member Functions | |
| checkImageQuality (int $image_quality) | |
Private Member Functions | |
| checkFormat (string $format) | |
Private Attributes | |
| int | $quality = 75 |
| string | $format = self::FORMAT_JPG |
| array | $allowed_formats |
Definition at line 26 of file ImageOutputOptions.php.
|
private |
Definition at line 101 of file ImageOutputOptions.php.
References ILIAS\Filesystem\Util\Convert\ImageOutputOptions\$format, and ILIAS\Filesystem\Util\Convert\ImageOutputOptions\FORMAT_JPG.
Referenced by ILIAS\Filesystem\Util\Convert\ImageOutputOptions\withFormat().
Here is the caller graph for this function:
|
protected |
Definition at line 114 of file ImageOutputOptions.php.
Referenced by ILIAS\Filesystem\Util\Convert\ImageOutputOptions\withQuality().
Here is the caller graph for this function:| ILIAS\Filesystem\Util\Convert\ImageOutputOptions::getFormat | ( | ) |
Definition at line 91 of file ImageOutputOptions.php.
References ILIAS\Filesystem\Util\Convert\ImageOutputOptions\$format.
Referenced by ILIAS\Filesystem\Util\Convert\Images\merge().
Here is the caller graph for this function:| ILIAS\Filesystem\Util\Convert\ImageOutputOptions::getQuality | ( | ) |
Definition at line 96 of file ImageOutputOptions.php.
References ILIAS\Filesystem\Util\Convert\ImageOutputOptions\$quality.
Referenced by ILIAS\Filesystem\Util\Convert\Images\merge().
Here is the caller graph for this function:| ILIAS\Filesystem\Util\Convert\ImageOutputOptions::withFormat | ( | string | $format | ) |
@description set the desired output format.
InvalidArgumentException if an invalid format is passed
Definition at line 45 of file ImageOutputOptions.php.
References ILIAS\Filesystem\Util\Convert\ImageOutputOptions\$format, and ILIAS\Filesystem\Util\Convert\ImageOutputOptions\checkFormat().
Referenced by ILIAS\Filesystem\Util\Convert\ImageOutputOptions\withJpgOutput(), ILIAS\Filesystem\Util\Convert\ImageOutputOptions\withPngOutput(), and ILIAS\Filesystem\Util\Convert\ImageOutputOptions\withWebPOutput().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Filesystem\Util\Convert\ImageOutputOptions::withJpgOutput | ( | ) |
@description set the output format to JPG
Definition at line 56 of file ImageOutputOptions.php.
References ILIAS\Filesystem\Util\Convert\ImageOutputOptions\withFormat().
Here is the call graph for this function:| ILIAS\Filesystem\Util\Convert\ImageOutputOptions::withPngOutput | ( | ) |
@description set the output format to PNG
Definition at line 64 of file ImageOutputOptions.php.
References ILIAS\Filesystem\Util\Convert\ImageOutputOptions\withFormat().
Here is the call graph for this function:| ILIAS\Filesystem\Util\Convert\ImageOutputOptions::withQuality | ( | int | $image_quality | ) |
@description set the image compression quality.
Depending on the format, this will be ignored or other values are needed. JPG: 0-100 WEBP: 0 (loss) or 100 (lossless) PNG: 0-100 (which will be converted to 0-9 internally)
Definition at line 83 of file ImageOutputOptions.php.
References ILIAS\Filesystem\Util\Convert\ImageOutputOptions\checkImageQuality().
Referenced by ILIAS\Filesystem\Util\Convert\Images\merge().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Filesystem\Util\Convert\ImageOutputOptions::withWebPOutput | ( | ) |
@description set the output format to WEBP
Definition at line 72 of file ImageOutputOptions.php.
References ILIAS\Filesystem\Util\Convert\ImageOutputOptions\withFormat().
Here is the call graph for this function:
|
private |
Definition at line 34 of file ImageOutputOptions.php.
|
private |
Definition at line 33 of file ImageOutputOptions.php.
Referenced by ILIAS\Filesystem\Util\Convert\ImageOutputOptions\checkFormat(), ILIAS\Filesystem\Util\Convert\ImageOutputOptions\getFormat(), and ILIAS\Filesystem\Util\Convert\ImageOutputOptions\withFormat().
|
private |
Definition at line 32 of file ImageOutputOptions.php.
Referenced by ILIAS\Filesystem\Util\Convert\ImageOutputOptions\getQuality().
| const ILIAS\Filesystem\Util\Convert\ImageOutputOptions::FORMAT_JPG = 'jpg' |
| const ILIAS\Filesystem\Util\Convert\ImageOutputOptions::FORMAT_KEEP = 'keep' |
Definition at line 31 of file ImageOutputOptions.php.
Referenced by ILIAS\Filesystem\Util\Convert\ImageConverter\handleFormatAndQuality().
| const ILIAS\Filesystem\Util\Convert\ImageOutputOptions::FORMAT_PNG = 'png' |
| const ILIAS\Filesystem\Util\Convert\ImageOutputOptions::FORMAT_WEBP = 'webp' |
Definition at line 30 of file ImageOutputOptions.php.
Referenced by ILIAS\Filesystem\Util\Convert\ImageConverter\handleFormatAndQuality().