Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorFileThumbnailTransform

final class PhabricatorFileThumbnailTransform
Phabricator Technical Documentation (Files)

This class is not documented.

Methods

public function getTransformName()

This method is not documented.
Return
wild

public function getTransformKey()

This method is not documented.
Return
wild

public function canApplyTransform($file)
Inherited

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

public function applyTransform($file)

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

public function getDefaultTransform($file)

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

public function generateTransforms()

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)

PhabricatorFileImageTransform

Get an estimate of the transformed dimensions of a file.

PhabricatorFileThumbnailTransform
This method is not documented.
Parameters
PhabricatorFile$fileFile to transform.
Return
list<int, int>|nullWidth and height, if available.

protected function willTransformFile($file)
Inherited

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

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

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

protected function newFileFromData($data)
Inherited

PhabricatorFileImageTransform

Create a new PhabricatorFile from raw data.

Parameters
string$dataRaw file data.
Return
wild

protected function newEmptyImage($w, $h)
Inherited

PhabricatorFileImageTransform

Create a new image filled with transparent pixels.

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

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

PhabricatorFileImageTransform

Get the raw file data for the image being transformed.

Return
stringRaw file data.

protected function getImage()
Inherited

PhabricatorFileImageTransform

Get the GD image resource for the image being transformed.

Return
resourceGD image resource.

private function shouldUseImagemagick()
Inherited

This method is not documented.
Return
wild

public function setName($name)

This method is not documented.
Parameters
$name
Return
wild

public function setKey($key)

This method is not documented.
Parameters
$key
Return
wild

public function setDimensions($x, $y)

This method is not documented.
Parameters
$x
$y
Return
wild

public function setScaleUp($scale)

This method is not documented.
Parameters
$scale
Return
wild

private function computeDimensions($src_x, $src_y, $dst_x, $dst_y)

This method is not documented.
Parameters
$src_x
$src_y
$dst_x
$dst_y
Return
wild