ImageProcessingService
in package
implements
ImageProcessingServiceInterface
Class ImageProcessingService
Tags
Interfaces, Classes and Traits
- ImageProcessingServiceInterface
- Interface ImageProcessingServiceInterface
Table of Contents
- __construct() : mixed
- ImageProcessingService constructor.
- createMissingImages() : bool
- Creates popup, info, thumbnail and gallery images of given original image file if they are missing.
- isTriggerSet() : bool
- Checks if trrigger for recreation of all images is set.
- recreateAllImages() : bool
- Creates popup, info, thumbnail and gallery images of given original image.
- removeTrigger() : void
- Removes the trigger for recreation of all image files.
- setTrigger() : void
- Sets trigger for recreation of all image files.
- createImages() : bool
- Creates images in different sizes of given filename.
Methods
__construct()
ImageProcessingService constructor.
public
__construct() : mixed
Return values
mixed —createMissingImages()
Creates popup, info, thumbnail and gallery images of given original image file if they are missing.
public
createMissingImages(ExistingFile $originalImageFilePath) : bool
Parameters
- $originalImageFilePath : ExistingFile
Return values
bool —if image processed successfully.
isTriggerSet()
Checks if trrigger for recreation of all images is set.
public
static isTriggerSet() : bool
Return values
bool —recreateAllImages()
Creates popup, info, thumbnail and gallery images of given original image.
public
recreateAllImages(ExistingFile $originalImageFilePath) : bool
Parameters
- $originalImageFilePath : ExistingFile
Return values
bool —if image processed successfully.
removeTrigger()
Removes the trigger for recreation of all image files.
public
static removeTrigger() : void
Return values
void —setTrigger()
Sets trigger for recreation of all image files.
public
static setTrigger() : void
Return values
void —createImages()
Creates images in different sizes of given filename.
protected
createImages(string $imageFilename[, bool $skipExistingImages = false ]) : bool
Parameters
- $imageFilename : string
-
filename without path
- $skipExistingImages : bool = false
-
only create missing images
Return values
bool —Returns true, if no error occurred.