public function getResizedVersion(ImageResizer $resizer, $width)
    {
        if (!$this->class->hasWidth($width)) {
            throw new WidthNotAllowedException($width);
        }
        return $resizer->resize(
            $this->class->getImageResizeDefinitionByWidth($width),
            $this->original_ifi,
            true
        );
    }
public function getResizedVersion(ImageResizer $resizer, $width)
    {
        if (!$this->class->hasWidth($width)) {
            throw new WidthNotAllowedException($width);
        }
        return $resizer->resize(
            $this->class->getImageResizeDefinitionByWidth($width),
            $this->original_ifi,
            true
        );
    }
public function getResizedVersion ( ImageResizer $ resizer , $ width ) { if ( ! $ this -> class -> hasWidth ( $ width ) ) { throw new WidthNotAllowedException ( $ width ) ; } return $ resizer -> resize ( $ this -> class -> getImageResizeDefinitionByWidth ( $ width ) , $ this -> original_ifi , true ) ; }
Resize the image to a defined width and return the corresponding ImageFileInfo object

@param ImageResizer $resizer
@param int $width The desired width; it must be a width that is availaible in the image class
@return ImageFileInfo The ImageFileInfo object pointing to the resized image file
@throws \Exception
Resize the image to a defined width and return the corresponding ImageFileInfo object