this class provide functions to edit an image, e.g. resize, rotate, flip, crop
- Class name: Image
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 15
- $_debug
- $_errors
- $_imgFinal
- $_imgInfoFinal
- $_imgInfoOrig
- $_imgOrig
- $_imgQuality
- $chmod
- $gdInfo
- $imageFile
- $transparentColorBlue
- $transparentColorGreen
- $transparentColorRed
- DestroyImages
- Image
- __construct
- _createFinalImageHandler
- _debug
- _getExtension
- _getImageInfo
- _isDebugEnable
- _isSupported
- _resize
- crop
- enableDebug
- flip
- flipHorizontal
- flipVertical
- getFinalImageInfo
- getGDInfo
- getImageInfo
- getOriginalImageInfo
- loadImage
- loadImageFromString
- resize
- rotate
- saveImage
- showErrors
- showImage
public mixed $_debug = false
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 17.
public mixed $_errors = array()
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 18.
public mixed $_imgFinal = null
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 21.
public mixed $_imgInfoFinal = array('name' => '', 'ext' => '', 'size' => '', 'width' => '', 'height' => '', 'type' => '', 'path' => '')
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 36.
public mixed $_imgInfoOrig = array('name' => '', 'ext' => '', 'size' => '', 'width' => '', 'height' => '', 'type' => '', 'path' => '')
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 27.
public mixed $_imgOrig = null
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 20.
public mixed $_imgQuality = 90
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 45.
public mixed $chmod = 493
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 26.
public mixed $gdInfo = array()
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 19.
public mixed $imageFile = null
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 22.
public mixed $transparentColorBlue = null
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 25.
public mixed $transparentColorGreen = null
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 24.
public mixed $transparentColorRed = null
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 23.
void Image::DestroyImages(boolean $original)
Destroy the resources used by the images.
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 652
- $original boolean
mixed Image::Image($debug)
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 58
- $debug mixed
\Image Image::__construct(boolean $debug)
constructor
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 53
- $debug boolean
mixed Image::_createFinalImageHandler($dst_w, $dst_h)
create final image handler
@access private
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 771
- $dst_w mixed - width @param $dst_h height @return boolean @copyright original from noname at nivelzero dot ro
- $dst_h mixed
void Image::_debug($value)
append to errors array and shown the each error when the debug turned on
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 88
- $value mixed
string Image::_getExtension(string $file)
Get the extension of a file name
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 465
- $file string
array Image::_getImageInfo($imagePath)
get image information, e.g. width, height, type
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 674
- $imagePath mixed
boolean Image::_isDebugEnable()
check if debug enable
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 75
boolean Image::_isSupported(string $filename, string $extension, string $function, boolean $write)
Validate whether image reading/writing routines are valid.
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 485
- $filename string
- $extension string
- $function string
- $write boolean
\unknown Image::_resize(integer $new_x, integer $new_y)
resize the image and return the thumbnail image details array("width"=>, "height"=>, "name")
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 417
- $new_x integer - the thumbnail width
- $new_y integer - the thumbnail height
boolean Image::crop(integer $dst_x, integer $dst_y, integer $dst_w, integer $dst_h)
Used for cropping image
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 297
- $dst_x integer
- $dst_y integer
- $dst_w integer
- $dst_h integer
mixed Image::enableDebug(boolean $value)
enable to debug
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 67
- $value boolean
boolean Image::flip(string $direction)
flip image horizotally or vertically
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 510
- $direction string
string Image::flipHorizontal()
flip horizontal
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 568
boolean Image::flipVertical()
flip vertically
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 559
array Image::getFinalImageInfo()
return the final image info
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 746
array Image::getGDInfo(boolean $versionOnly)
get the GD version information
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 582
- $versionOnly boolean
mixed Image::getImageInfo($imagePath)
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 665
- $imagePath mixed
array Image::getOriginalImageInfo()
get the original image info
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 737
boolean Image::loadImage(string $filename)
Load an image from the file system.
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 118
- $filename string
boolean Image::loadImageFromString(string $string)
Load an image from a string (eg. from a database table)
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 179
- $string string
mixed Image::resize(mixed $new_x, mixed $new_y, boolean $constraint, boolean $unchangeIfsmaller)
Resize the Image in the X and/or Y direction If either is 0 it will be scaled proportionally
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 348
- $new_x mixed
- $new_y mixed
- $constraint boolean - keep to resize the image proportionally
- $unchangeIfsmaller boolean - keep the orignial size if the orignial smaller than the new size
mixed Image::rotate($angle, $bgColor)
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 713
- $angle mixed
- $bgColor mixed
boolean Image::saveImage(string $filename, integer $quality, string $forcetype)
Save the modified image
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 201
- $filename string
- $quality integer
- $forcetype string
mixed Image::showErrors()
show erros
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 100
boolean Image::showImage(string $type, integer $quality)
Shows the masked image without any saving
- Visibility: public
- Source: admin-dev/ajaxfilemanager/inc/class.image.php line 251
- $type string
- $quality integer