/** * Force the width and the height. */ protected static function resizeByWidthHeight(ImageInterface $image, Format $format) { $box = new Box($format->getWidth(), $format->getHeight()); return static::doResize($image, $box); }