Beta version

class DownscaleImageManager

Methods

__construct(EntityManager $em, Packages $packages, LoggerInterface $logger = null, string $imageDriver = 'gd', integer $maxPixelSize, string $rawImageSuffix = '.raw')

No description

processAndOverrideDocument(Document $document = null)

Downscale document if needed, overriding raw document.

processDocumentFromExistingRaw(Document $document = null)

Downscale document if needed, keeping existing raw document.

Details

at line 70
__construct(EntityManager $em, Packages $packages, LoggerInterface $logger = null, string $imageDriver = 'gd', integer $maxPixelSize, string $rawImageSuffix = '.raw')

Parameters

EntityManager $em
Packages $packages
LoggerInterface $logger
string $imageDriver
integer $maxPixelSize
string $rawImageSuffix

at line 91
processAndOverrideDocument(Document $document = null)

Downscale document if needed, overriding raw document.

Parameters

Document $document

at line 112
processDocumentFromExistingRaw(Document $document = null)

Downscale document if needed, keeping existing raw document.

Parameters

Document $document