Fork me on GitHub

Properties

resource

The GD image resource identifier of current image.

type

The type of the current image as one of the GD libraries IMAGETYPE_XXX integers.

mime

MIME type of the current image, if it has already been determined.

Example: image/png

width

Integer of the current image width in pixels.

Example: 800

height

Integer of the current image height in pixels.

Example: 600

dirname

The current directory of the image, if instance was created from file.

Example: images/users/large

basename

The current basename of the image file, if instance was created from file.

Example: img_0450.jpg

extension

The current filename extension of the image file, if instance was created from file.

Example: jpg

filename

The current image basename without extension, if instance was created from file.

Example: img_0450

encoded

Buffer of last result of encode.

cachekey

Key of the image in cache. Only available if image caching is used.