src/TemplateHelper.php
public function getResizeUrl($image, $width, $height = null, $format = 'jpg', $seo = null, $seoLanguage = 'de')
    {
        $imageObject = $this->getImageObject($image);
        if (null !== $height) {
            $heightString = "-height-$height";
        } else {
            $heightString = '';
        }
        $stack = "dynamic/resize-width-$width$heightString--options-autoformat-true-jpg.transparency.autoformat-true";

        return $this->getStackUrl($imageObject, $stack, $format, $seo, $seoLanguage);
    }
public function getResizeUrl($image, $width, $height = null, $format = 'jpg', $seo = null, $seoLanguage = 'de')
    {
        $imageObject = $this->getImageObject($image);
        if (null !== $height) {
            $heightString = "-height-$height";
        } else {
            $heightString = '';
        }
        $stack = "dynamic/resize-width-$width$heightString--options-autoformat-true-jpg.transparency.autoformat-true";

        return $this->getStackUrl($imageObject, $stack, $format, $seo, $seoLanguage);
    }
public function getResizeUrl ( $ image , $ width , $ height = null , $ format = 'jpg' , $ seo = null , $ seoLanguage = 'de' ) { $ imageObject = $ this -> getImageObject ( $ image ) ; if ( null !== $ height ) { $ heightString = "-height-$height" ; } else { $ heightString = '' ; } $ stack = "dynamic/resize-width-$width$heightString--options-autoformat-true-jpg.transparency.autoformat-true" ; return $ this -> getStackUrl ( $ imageObject , $ stack , $ format , $ seo , $ seoLanguage ) ; }
Return the rokka URL for getting a resized image.

@since 1.3.0

@param AbstractLocalImage|string|\SplFileInfo $image       The image to be resized
@param string|int                             $width       The width of the image
@param string|int|null                        $height      The height of the image
@param string                                 $format      The image format of the image (jpg, png, webp, ...)
@param string|null                            $seo
@param string                                 $seoLanguage

@throws \GuzzleHttp\Exception\GuzzleException
@throws \RuntimeException

@return string
Return the rokka URL for getting a resized image .