/** * 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); }
protected function getFileKeyWithFormat($filename, Format $format, $extension) { return str_replace(['{format}', '{filename}', '{ext}'], [$format->getRaw(), $filename, $extension], $this->keyPattern); }