|
| | __construct ($data, $type=null) |
| |
| | __destruct () |
| |
| | is_imagick () |
| |
| | get_FormatsMap () |
| |
| | is_valid () |
| |
| | getWidth () |
| |
| | getHeight () |
| |
| | getImage () |
| |
| | getType () |
| |
| | getExt () |
| |
| | scaleImage ($max) |
| |
| | rotate ($degrees) |
| |
| | flip ($horiz=true, $vert=false) |
| |
| | orient ($filename) |
| |
| | scaleImageUp ($min) |
| |
| | scaleImageSquare ($dim) |
| |
| | cropImage ($max, $x, $y, $w, $h) |
| |
| | saveImage ($path) |
| |
| | imageString () |
| |
| | store ($aid, $uid, $xchan, $rid, $filename, $album, $scale, $profile=0, $allow_cid= '', $allow_gid= '', $deny_cid= '', $deny_gid= '') |
| |
| Photo::__construct |
( |
|
$data, |
|
|
|
$type = null |
|
) |
| |
Setup the image to the format it will be saved to
setup the compression here, so we'll do it only once
From http://www.imagemagick.org/script/command-line-options.php#quality:
'For the MNG and PNG image formats, the quality value sets the zlib compression level (quality / 10) and filter-type (quality % 10). The default PNG "quality" is 75, which means compression level 7 with adaptive PNG filtering, unless the image has a color map, in which case it means compression level 7 with no PNG filtering'
| Photo::cropImage |
( |
|
$max, |
|
|
|
$x, |
|
|
|
$y, |
|
|
|
$w, |
|
|
|
$h |
|
) |
| |
| Photo::flip |
( |
|
$horiz = true, |
|
|
|
$vert = false |
|
) |
| |
| Photo::get_FormatsMap |
( |
| ) |
|
Referenced by __construct(), __destruct(), cropImage(), flip(), getHeight(), getImage(), getWidth(), imageString(), is_valid(), rotate(), scaleImage(), scaleImageSquare(), and scaleImageUp().
Referenced by cropImage(), flip(), getExt(), getHeight(), getImage(), getType(), getWidth(), imageString(), orient(), rotate(), saveImage(), scaleImage(), scaleImageSquare(), and scaleImageUp().
| Photo::orient |
( |
|
$filename | ) |
|
| Photo::rotate |
( |
|
$degrees | ) |
|
| Photo::saveImage |
( |
|
$path | ) |
|
| Photo::scaleImage |
( |
|
$max | ) |
|
If it is not animated, there will be only one iteration here, so don't bother checking
Referenced by cropImage(), and scaleImageUp().
| Photo::scaleImageSquare |
( |
|
$dim | ) |
|
| Photo::scaleImageUp |
( |
|
$min | ) |
|
| Photo::store |
( |
|
$aid, |
|
|
|
$uid, |
|
|
|
$xchan, |
|
|
|
$rid, |
|
|
|
$filename, |
|
|
|
$album, |
|
|
|
$scale, |
|
|
|
$profile = 0, |
|
|
|
$allow_cid = '', |
|
|
|
$allow_gid = '', |
|
|
|
$deny_cid = '', |
|
|
|
$deny_gid = '' |
|
) |
| |
| static Photo::supportedTypes |
( |
| ) |
|
|
static |
Put back gd stuff, not everybody have Imagick
Referenced by is_imagick().
The documentation for this class was generated from the following file: