Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/PhabricatorImageTransformer.php
Show First 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | public static function getPreviewDimensions(PhabricatorFile $file, $size) { | ||||
$sdy = $scale * $y; | $sdy = $scale * $y; | ||||
return array( | return array( | ||||
'x' => $x, | 'x' => $x, | ||||
'y' => $y, | 'y' => $y, | ||||
'dx' => $dx, | 'dx' => $dx, | ||||
'dy' => $dy, | 'dy' => $dy, | ||||
'sdx' => $sdx, | 'sdx' => $sdx, | ||||
'sdy' => $sdy | 'sdy' => $sdy, | ||||
); | ); | ||||
} | } | ||||
public static function getScaleForCrop( | public static function getScaleForCrop( | ||||
PhabricatorFile $file, | PhabricatorFile $file, | ||||
$des_width, | $des_width, | ||||
$des_height) { | $des_height) { | ||||
▲ Show 20 Lines • Show All 435 Lines • Show Last 20 Lines |