Class LegacyProductImageProcessing
Class LegacyProductImageProcessing
-
LegacyProductImageProcessing
implements
ProductImageProcessingInterface
Methods summary
public
LegacyProductImageProcessing
|
#
proceedImage( FilenameStringType $image )
Proceed Image
Processes an image for the front end.
Parameters
Returns
Throws
InvalidArgumentException if the provided image name is not valid.
FileNotFoundException if the provided image was not found.
RuntimeException if the PHP GD library is not installed.
Implementation of
|
protected
|
#
_defineNeededConstantsForIncludes( )
Define Needed Constants for Includes
Define Needed Constants for Includes
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.
|
protected
boolean
|
#
_isGdLibraryInstalled( )
Is GD Library Installed
Checks if the GD library is installed, which is necessary for the image processing.
Returns true if the library is installed.
Returns
boolean Is the PHP GD library installed?
|
protected
|
#
_throwExceptionIfImageDoesNotExist( $image )
Throw Exception If Image Does Not Exist
Throw Exception If Image Does Not Exist
Checks if the image exist in the folder original_images.
If the image does not exist, an exception will be thrown.
Parameters
Throws
|