public function setCrop(int $width, int $height, int $x, int $y)
{
foreach (compact('width', 'height') as $name => $value) {
if ($value < 1) {
throw InvalidConversionParameter::shouldBeGreaterThanOne($name, $value);
}
}
$this->setManipulationParameter('crop', implode(',', [$width, $height, $x, $y]));
return $this;
}