コード例 #1
0
 public function executeProfileTransform(PhabricatorFile $file, $x, $min_y, $max_y)
 {
     $data = $file->loadFileData();
     $image = $this->crudelyCropTo($data, $x, $min_y, $max_y);
     return PhabricatorFile::newFromFileData($image, array('name' => 'profile-' . $file->getName()));
 }