public function applyToImage(ImagineImageInterface $image) { $ratioMode = $this->ratioMode ?: ImageInterface::RATIOMODE_INSET; return $this->resize($image, $ratioMode); }