Documentation

QualityImageTransform
in package
implements ImageTransform

Sets the image quality for JPEGs.

If you don't use one of these, the default is 95

Table of Contents

Interfaces

ImageTransform
Does image resizing, or whatever transforms wanted really.

Properties

$q  : mixed

Methods

__construct()  : mixed
estimateRamRequirement()  : int
Estimate the RAM requirement to run this transform
transform()  : bool
Does the actual transform

Properties

Methods

__construct()

public __construct(int $q) : mixed
Parameters
$q : int

The quality to use, 1 = worst, 100 = best.

estimateRamRequirement()

Estimate the RAM requirement to run this transform

public estimateRamRequirement() : int
Return values
int —

Bytes

transform()

Does the actual transform

public transform(Image $img) : bool
Parameters
$img : Image

The image to transform

Return values
bool —

True on success, false on error

On this page

Search results