trait QualityQualifierTrait

Trait QualityQualifierTrait

Methods

quality(int $level, null|string $preset = null)

Controls the compression quality for images and videos.

Details

static QualityQualifier quality(int $level, null|string $preset = null)

Controls the compression quality for images and videos.

Reducing the quality is a trade-off between visual quality and file size.

Parameters

Name Type Description
$level int The level of the quality. (Range 1 to 100)
$preset null|string A set level of automatic quality. Use the constants defined in the QualityQualifier class.

Return Value

QualityQualifier

See also

QualityQualifier