API Documentation for: 1.0.1
Show:

ImageResizerError Class

Extends Exception
Namespace: Canteen\Media

Exceptions specific to the image Resizer Utility.
Located in the namespace Canteen\Media.

Constructor

ImageResizerError

(
  • code
  • [data='']
)

Parameters:

  • code Int

    The error code

  • [data=''] String | Array optional

    The optional data associated with this error

Properties

FILE_DOESNT_EXIST

Int final static

Source file doesn't exit

FUNC_DOESNT_EXIST

Int final static

Function doesn't exist, for API checks

GD2_NOT_CREATED

Int final static

GD2 is installed, function ImageCreateTruecolor() exists, but image is not created

GD2_NOT_RESIZED

Int final static

GD2 is installed, function ImageCopyResampled() exists, but image is not resized

GD2_UNAVALABLE

Int final static

You specified to use GD2, but not all GD2 functions are present.

IMG_NOT_CREATED

Int final static

Image is not created ImageCreate(). (GD2 support is OFF)

IMG_NOT_RESIZED

Int final static

Image was not resized. (GD2 support is OFF)

IMG_NOT_SUPPORTED

Int final static

Can not create image. Sorry, this image type is not supported yet.

messages

Array private final static

The collection of messages

NO_IMAGE_FOR_OUTPUT

Int final static

Image you are trying to output does not exist

UNABLE_TO_OUTPUT

Int final static

Unable to output file

UNKNOWN

String final static

The label for an error that is unknown or unfound in messages

UNKNOWN_OUTPUT_FORMAT

Int final static

The image format cannot be output