19 declare(strict_types=1);
31 public const FOREVER_ID =
'0fca4b6cf274bd4aac78caef9494f6f19e67366118548d5556f89fda5f683826';
34 protected bool $persist =
false,
35 protected int $max_width = 512,
36 protected float $ratio = 16 / 9,
37 protected int $quality = 75
43 return self::FOREVER_ID;
49 return MaxRectangleSizeMachine::ID;
54 return $this->quality;
59 return $this->max_width;
69 return 'crop_to_rectangle';
74 return $this->max_size .
'_' . $this->ratio .
'_' . $this->quality;
79 return $this->persist;
getVariantName()
If a definition can be used in several variants (e.g.
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it...
__construct(protected bool $persist=false, protected int $max_width=512, protected float $ratio=16/9, protected int $quality=75)
persist()
Define whether the generated flavor and the respective streams should be persisted, or whether they should only be generated and used in-memory.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getFlavourMachineId()
Defines the ID of the machine that supports this definition.