\CodeIgniter\ImagesImage

Encapsulation of an Image file

Summary

Methods
Properties
Constants
copy()
getProperties()
$origWidth
$origHeight
$imageType
$sizeStr
$mime
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$origWidth

$origWidth : 

The original image width in pixels.

Type

$origHeight

$origHeight : 

The original image height in pixels.

Type

$imageType

$imageType : integer

The image type constant.

Type

integer

$sizeStr

$sizeStr : string

attributes string with size info: 'height="100" width="200"'

Type

string

$mime

$mime : string

The image's mime type, i.e. image/jpeg

Type

string

Methods

copy()

copy(string  $targetPath, string|null  $targetName = null, integer  $perms = 420) : boolean

Makes a copy of itself to the new location. If no filename is provided it will use the existing filename.

Parameters

string $targetPath

The directory to store the file in

string|null $targetName

The new name of the copied file.

integer $perms

File permissions to be applied after copy.

Returns

boolean

getProperties()

getProperties(boolean  $return = false) : mixed

Get image properties

A helper function that gets info about the file

Parameters

boolean $return

Returns

mixed