19declare(strict_types=1);
32 public const FOREVER_ID =
'0fca4b6cf274bd4aac78caef9494f6f19e67366118548d5556f89fda5f683826';
35 protected bool $persist =
false,
36 protected int $max_width = 512,
37 protected float $ratio = 16 / 9,
38 protected int $quality = 75
50 return MaxRectangleSizeMachine::ID;
55 return $this->quality;
60 return $this->max_width;
70 return 'crop_to_rectangle';
75 return $this->max_size .
'_' . $this->ratio .
'_' . $this->quality;
80 return $this->persist;
getFlavourMachineId()
Defines the ID of the machine that supports this definition.
getVariantName()
If a definition can be used in several variants (e.g.
persist()
Define whether the generated flavor and the respective streams should be persisted,...
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...