public function getTransformName()
public function getTransformName()
Return
wild |
public function getTransformKey()
public function getTransformKey()
Return
wild |
public function canApplyTransform($file)Inherited
public function canApplyTransform($file)
Inherited
Parameters
PhabricatorFile | $file |
Return
wild |
public function applyTransform($file)
public function applyTransform($file)
Parameters
PhabricatorFile | $file |
Return
wild |
public function getDefaultTransform($file)
public function getDefaultTransform($file)
Parameters
PhabricatorFile | $file |
Return
wild |
public function generateTransforms()
public function generateTransforms()
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)
PhabricatorFileImageTransform
Get an estimate of the transformed dimensions of a file.
PhabricatorFileThumbnailTransform
Parameters
PhabricatorFile | $file | File to transform. |
Return
list<int, int>|null | Width and height, if available. |
protected function willTransformFile($file)Inherited
protected function willTransformFile($file)
Inherited
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)Inherited
protected function applyCropAndScale($dst_w, $dst_h, $src_x, $src_y, $src_w, $src_h, $use_w, $use_h, $scale_up)
Inherited
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)Inherited
protected function applyImagemagick($argv)
Inherited
Parameters
array | $argv |
Return
wild |
protected function newFileFromData($data)Inherited
protected function newFileFromData($data)
Inherited
PhabricatorFileImageTransform
Create a new PhabricatorFile from raw data.
Parameters
string | $data | Raw file data. |
Return
wild |
protected function newEmptyImage($w, $h)Inherited
protected function newEmptyImage($w, $h)
Inherited
PhabricatorFileImageTransform
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()Inherited
protected function getImageDimensions()
Inherited
PhabricatorFileImageTransform
Get the pixel dimensions of the image being transformed.
Return
list<int, int> | Width and height of the image. |
protected function getData()Inherited
protected function getData()
Inherited
PhabricatorFileImageTransform
Get the raw file data for the image being transformed.
Return
string | Raw file data. |
protected function getImage()Inherited
protected function getImage()
Inherited
PhabricatorFileImageTransform
Get the GD image resource for the image being transformed.
Return
resource | GD image resource. |
private function shouldUseImagemagick()Inherited
private function shouldUseImagemagick()
Inherited
Return
wild |
public function setName($name)
public function setName($name)
Parameters
$name |
Return
wild |
public function setKey($key)
public function setKey($key)
Parameters
$key |
Return
wild |
public function setDimensions($x, $y)
public function setDimensions($x, $y)
Parameters
$x | ||
$y |
Return
wild |
public function setScaleUp($scale)
public function setScaleUp($scale)
Parameters
$scale |
Return
wild |
private function computeDimensions($src_x, $src_y, $dst_x, $dst_y)
private function computeDimensions($src_x, $src_y, $dst_x, $dst_y)
Parameters
$src_x | ||
$src_y | ||
$dst_x | ||
$dst_y |
Return
wild |