Class LegacyProductImageProcessing
category |
System |
---|---|
package |
Product |
subpackage |
Entities |
_defineNeededConstantsForIncludes()
These constants are needed for the include files. The global constants defined in admin/includes/configure.php are not available, because the current file is within in the src/includes folder and thus, is using the src/includes/configure.php, in which those constants are either not defined or not correct for this class.
_isGdLibraryInstalled() : boolean
Checks if the GD library is installed, which is necessary for the image processing. Returns true if the library is installed.
boolean
Is the PHP GD library installed?
_throwExceptionIfImageDoesNotExist( $image)
Checks if the image exist in the folder original_images. If the image does not exist, an exception will be thrown.
Throws |
|
---|
Image to check.
proceedImage(\FilenameStringType $image) : \LegacyProductImageProcessing
Processes an image for the front end.
Throws |
|
---|
\LegacyProductImageProcessing
Same instance for chained method calls.