public function __get($name)Inherited
public function __get($name)
Inherited
Parameters
$name |
Return
wild |
public function __set($name, $value)Inherited
public function __set($name, $value)
Inherited
Parameters
$name | ||
$value |
Return
wild |
public function current()Inherited
public function current()
Inherited
Return
wild |
public function key()Inherited
public function key()
Inherited
Return
wild |
public function next()Inherited
public function next()
Inherited
Return
wild |
public function rewind()Inherited
public function rewind()
Inherited
Return
wild |
public function valid()Inherited
public function valid()
Inherited
Return
wild |
private function throwOnAttemptedIteration()Inherited
private function throwOnAttemptedIteration()
Inherited
Return
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
public function getPhobjectClassConstant($key, $byte_limit)
Inherited
Phobject
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
Parameters
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
Return
string | Value of the constant. |
abstract public function getTransformName()Inherited
abstract public function getTransformName()
Inherited
Return
wild |
abstract public function getTransformKey()Inherited
abstract public function getTransformKey()
Inherited
Return
wild |
public function canApplyTransform($file)
public function canApplyTransform($file)
Parameters
PhabricatorFile | $file |
Return
wild |
abstract public function applyTransform($file)Inherited
abstract public function applyTransform($file)
Inherited
Parameters
PhabricatorFile | $file |
Return
wild |
public function getDefaultTransform($file)Inherited
public function getDefaultTransform($file)
Inherited
Parameters
PhabricatorFile | $file |
Return
wild |
public function generateTransforms()Inherited
public function generateTransforms()
Inherited
Return
wild |
public function executeTransform($file)Inherited
public function executeTransform($file)
Inherited
Parameters
PhabricatorFile | $file |
Return
wild |
public static function getAllTransforms()Inherited
public static function getAllTransforms()
Inherited
Return
wild |
public static function getTransformByKey($key)Inherited
public static function getTransformByKey($key)
Inherited
Parameters
$key |
Return
wild |
public function getTransformedDimensions($file)
public function getTransformedDimensions($file)
Get an estimate of the transformed dimensions of a file.
Parameters
PhabricatorFile | $file | File to transform. |
Return
list<int, int>|null | Width and height, if available. |
protected function willTransformFile($file)
protected function willTransformFile($file)
Parameters
PhabricatorFile | $file |
Return
wild |
protected function getFileProperties()
protected function getFileProperties()
Return
wild |
protected function applyCropAndScale($dst_w, $dst_h, $src_x, $src_y, $src_w, $src_h, $use_w, $use_h, $scale_up)
protected function applyCropAndScale($dst_w, $dst_h, $src_x, $src_y, $src_w, $src_h, $use_w, $use_h, $scale_up)
Parameters
$dst_w | ||
$dst_h | ||
$src_x | ||
$src_y | ||
$src_w | ||
$src_h | ||
$use_w | ||
$use_h | ||
$scale_up |
Return
wild |
protected function applyImagemagick($argv)
protected function applyImagemagick($argv)
Parameters
array | $argv |
Return
wild |
protected function newFileFromData($data)
protected function newFileFromData($data)
Create a new PhabricatorFile from raw data.
Parameters
string | $data | Raw file data. |
Return
wild |
protected function newEmptyImage($w, $h)
protected function newEmptyImage($w, $h)
Create a new image filled with transparent pixels.
Parameters
int | $w | Desired image width. |
int | $h | Desired image height. |
Return
resource | New image resource. |
protected function getImageDimensions()
protected function getImageDimensions()
Get the pixel dimensions of the image being transformed.
Return
list<int, int> | Width and height of the image. |
protected function getData()
protected function getData()
Get the raw file data for the image being transformed.
Return
string | Raw file data. |
protected function getImage()
protected function getImage()
Get the GD image resource for the image being transformed.
Return
resource | GD image resource. |
private function shouldUseImagemagick()
private function shouldUseImagemagick()
Return
wild |