code: public function scaleCrop($width, $height, $center = false)
      {
          if (!$width || !$height) {
              throw new \Exception('Please, provide both $width and $height');
          }
          $result = clone $this;
          $result->operations[]['scale_crop'] = array(
              'width' => $width,
              'height' => $height,
              'center' => $center,
          );
          return $result;
      }
docs: Get object with cropped parameters.
  
  @param int $width Crop width
  @param int $height Crop height
  @param boolean $center Center crop? true or false (default false).
  @return File
  @throws \Exception