src/TemplateHelper.php
public function getStackUrl(
      $image,
      $stack,
      $format = 'jpg',
      $seo = null,
      $seoLanguage = 'de'
    ) {
        if (null == $image) {
            return '';
        }
        $image = $this->getImageObject($image);

        if (!$hash = self::getHashMaybeUpload($image)) {
            return '';
        }
        if (null === $seo) {
            return $this->generateRokkaUrlWithImage($hash, $stack, $format, $image, $seoLanguage);
        }

        return $this->generateRokkaUrl($hash, $stack, $format, $seo, $seoLanguage);
    }
public function getStackUrl(
      $image,
      $stack,
      $format = 'jpg',
      $seo = null,
      $seoLanguage = 'de'
    ) {
        if (null == $image) {
            return '';
        }
        $image = $this->getImageObject($image);

        if (!$hash = self::getHashMaybeUpload($image)) {
            return '';
        }
        if (null === $seo) {
            return $this->generateRokkaUrlWithImage($hash, $stack, $format, $image, $seoLanguage);
        }

        return $this->generateRokkaUrl($hash, $stack, $format, $seo, $seoLanguage);
    }
public function getStackUrl ( $ image , $ stack , $ format = 'jpg' , $ seo = null , $ seoLanguage = 'de' ) { if ( null == $ image ) { return '' ; } $ image = $ this -> getImageObject ( $ image ) ; if ( ! $ hash = self :: getHashMaybeUpload ( $ image ) ) { return '' ; } if ( null === $ seo ) { return $ this -> generateRokkaUrlWithImage ( $ hash , $ stack , $ format , $ image , $ seoLanguage ) ; } return $ this -> generateRokkaUrl ( $ hash , $ stack , $ format , $ seo , $ seoLanguage ) ; }
Gets the rokka URL for an image
Uploads it, if we don't have a hash locally.

@since 1.3.0

@param AbstractLocalImage|string|\SplFileInfo $image       The image
@param string                                 $stack       The stack name
@param string|null                            $format      The image format of the image (jpg, png, webp, ...)
@param string|null                            $seo         if you want a different seo string than the default
@param string|null                            $seoLanguage Optional language to be used for slugifying (eg. 'de' slugifies 'ö' to 'oe')

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

@return string
Gets the rokka URL for an image Uploads it if we don t have a hash locally .