source/Core/PictureHandler.php
public function getPicUrl($sPath, $sFile, $sSize, $sIndex = null, $sAltPath = false, $bSsl = null)
    {
        $sUrl = null;
        if ($sPath && $sFile && ($aSize = $this->getImageSize($sSize, $sIndex))) {
            $aPicInfo = $this->_getPictureInfo("master/" . ($sAltPath ? $sAltPath : $sPath), $sFile, $this->isAdmin(), $bSsl);
            if ($aPicInfo['url'] && $aSize[0] && $aSize[1]) {
                $sDirName = "{$aSize[0]}_{$aSize[1]}_" . \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sDefaultImageQuality');
                $sUrl = str_replace("/master/" . ($sAltPath ? $sAltPath : $sPath), "/generated/{$sPath}{$sDirName}/", $aPicInfo['url']);
            }
        }

        return $sUrl;
    }
public function getPicUrl($sPath, $sFile, $sSize, $sIndex = null, $sAltPath = false, $bSsl = null)
    {
        $sUrl = null;
        if ($sPath && $sFile && ($aSize = $this->getImageSize($sSize, $sIndex))) {
            $aPicInfo = $this->_getPictureInfo("master/" . ($sAltPath ? $sAltPath : $sPath), $sFile, $this->isAdmin(), $bSsl);
            if ($aPicInfo['url'] && $aSize[0] && $aSize[1]) {
                $sDirName = "{$aSize[0]}_{$aSize[1]}_" . \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sDefaultImageQuality');
                $sUrl = str_replace("/master/" . ($sAltPath ? $sAltPath : $sPath), "/generated/{$sPath}{$sDirName}/", $aPicInfo['url']);
            }
        }

        return $sUrl;
    }
public function getPicUrl ( $ sPath , $ sFile , $ sSize , $ sIndex = null , $ sAltPath = false , $ bSsl = null ) { $ sUrl = null ; if ( $ sPath && $ sFile && ( $ aSize = $ this -> getImageSize ( $ sSize , $ sIndex ) ) ) { $ aPicInfo = $ this -> _getPictureInfo ( "master/" . ( $ sAltPath ? $ sAltPath : $ sPath ) , $ sFile , $ this -> isAdmin ( ) , $ bSsl ) ; if ( $ aPicInfo [ 'url' ] && $ aSize [ 0 ] && $ aSize [ 1 ] ) { $ sDirName = "{$aSize[0]}_{$aSize[1]}_" . \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'sDefaultImageQuality' ) ; $ sUrl = str_replace ( "/master/" . ( $ sAltPath ? $ sAltPath : $ sPath ) , "/generated/{$sPath}{$sDirName}/" , $ aPicInfo [ 'url' ] ) ; } } return $ sUrl ; }
Returns requested picture url. If image is not available - returns false

@param string $sPath    path from pictures/master/
@param string $sFile    picture file name
@param string $sSize    picture sizes (x, y)
@param string $sIndex   picture index [optional]
@param string $sAltPath alternative picture path [optional]
@param bool   $bSsl     Whether to force SSL

@return string | bool
Returns requested picture url . If image is not available - returns false