AnimatedFormat
class AnimatedFormat extends BaseAction
Defines the animated format of the delivered asset.
Methods
Format constructor.
Adds the qualifier to the action.
Adds qualifiers to the action.
Adds (sets) generic (raw) action.
Sets the flag.
Removes the flag.
Serializes to json.
Serializes to Cloudinary URL format
Animated image format webp.
Animated image format gif.
Animated image format png.
Animated image auto format.
Sets file format.
Automatically use lossy compression when delivering animated GIF files.
Details
__construct(array ...$value)
Format constructor.
$this
addQualifier(BaseComponent $qualifier = null)
Adds the qualifier to the action.
$this
addQualifiers(array ...$qualifiers)
Adds qualifiers to the action.
BaseAction
setGenericAction(string $action)
Adds (sets) generic (raw) action.
$this
setFlag(FlagQualifier $flag, bool $set = true)
Sets the flag.
$this
unsetFlag(FlagQualifier $flag)
Removes the flag.
$this
importAction(BaseAction|null $action)
Imports (merges) qualifiers and flags from another action.
mixed
jsonSerialize()
Serializes to json.
string
__toString()
Serializes to Cloudinary URL format
static AnimatedFormatTrait
webp()
Animated image format webp.
static AnimatedFormatTrait
gif()
Animated image format gif.
static AnimatedFormatTrait
png()
Animated image format png.
static AnimatedFormatTrait
auto()
Animated image auto format.
AnimatedFormat
format(string $format)
Sets file format.
AnimatedFormat
lossy(bool $useLossy = true)
Automatically use lossy compression when delivering animated GIF files.
Constants
MAIN_QUALIFIER |
|