Page MenuHomePhorge
Diviner Tech Docs PhabricatorFileImageTransform

abstract class PhabricatorFileImageTransform
Phorge Technical Documentation (Files)

This class is not documented.

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

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$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

abstract public function getTransformName()
Inherited

This method is not documented.
Return
wild

abstract public function getTransformKey()
Inherited

This method is not documented.
Return
wild

public function canApplyTransform($file)

This method is not documented.
Parameters
PhabricatorFile$file
Return
wild

abstract public function applyTransform($file)
Inherited

This method is not documented.
Parameters
PhabricatorFile$file
Return
wild

public function getDefaultTransform($file)
Inherited

This method is not documented.
Parameters
PhabricatorFile$file
Return
wild

public function generateTransforms()
Inherited

This method is not documented.
Return
wild

public function executeTransform($file)
Inherited

This method is not documented.
Parameters
PhabricatorFile$file
Return
wild

public static function getAllTransforms()
Inherited

This method is not documented.
Return
wild

public static function getTransformByKey($key)
Inherited

This method is not documented.
Parameters
$key
Return
wild

public function getTransformedDimensions($file)

Get an estimate of the transformed dimensions of a file.

Parameters
PhabricatorFile$fileFile to transform.
Return
list<int, int>|nullWidth and height, if available.

protected function willTransformFile($file)

This method is not documented.
Parameters
PhabricatorFile$file
Return
wild

protected function getFileProperties()

This method is not documented.
Return
wild

protected function applyCropAndScale($dst_w, $dst_h, $src_x, $src_y, $src_w, $src_h, $use_w, $use_h, $scale_up)

This method is not documented.
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)

This method is not documented.
Parameters
array$argv
Return
wild

protected function newFileFromData($data)

Create a new PhabricatorFile from raw data.

Parameters
string$dataRaw file data.
Return
wild

protected function newEmptyImage($w, $h)

Create a new image filled with transparent pixels.

Parameters
int$wDesired image width.
int$hDesired image height.
Return
resourceNew image resource.

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()

Get the raw file data for the image being transformed.

Return
stringRaw file data.

protected function getImage()

Get the GD image resource for the image being transformed.

Return
resourceGD image resource.

private function shouldUseImagemagick()

This method is not documented.
Return
wild