source/Core/UtilsPic.php
public function resizeImage($sSrc, $sTarget, $iDesiredWidth, $iDesiredHeight)
    {
        // use this GD Version
        if (($iUseGDVersion = getGdVersion()) && function_exists('imagecreate') &&
            file_exists($sSrc) && ($aImageInfo = @getimagesize($sSrc))
        ) {
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
            list($iWidth, $iHeight) = calcImageSize($iDesiredWidth, $iDesiredHeight, $aImageInfo[0], $aImageInfo[1]);

            return $this->_resize($aImageInfo, $sSrc, null, $sTarget, $iWidth, $iHeight, $iUseGDVersion, $myConfig->getConfigParam('blDisableTouch'), $myConfig->getConfigParam('sDefaultImageQuality'));
        }

        return false;
    }
public function resizeImage($sSrc, $sTarget, $iDesiredWidth, $iDesiredHeight)
    {
        // use this GD Version
        if (($iUseGDVersion = getGdVersion()) && function_exists('imagecreate') &&
            file_exists($sSrc) && ($aImageInfo = @getimagesize($sSrc))
        ) {
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
            list($iWidth, $iHeight) = calcImageSize($iDesiredWidth, $iDesiredHeight, $aImageInfo[0], $aImageInfo[1]);

            return $this->_resize($aImageInfo, $sSrc, null, $sTarget, $iWidth, $iHeight, $iUseGDVersion, $myConfig->getConfigParam('blDisableTouch'), $myConfig->getConfigParam('sDefaultImageQuality'));
        }

        return false;
    }
public function resizeImage ( $ sSrc , $ sTarget , $ iDesiredWidth , $ iDesiredHeight ) { // use this GD Version if ( ( $ iUseGDVersion = getGdVersion ( ) ) && function_exists ( 'imagecreate' ) && file_exists ( $ sSrc ) && ( $ aImageInfo = @ getimagesize ( $ sSrc ) ) ) { $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; list ( $ iWidth , $ iHeight ) = calcImageSize ( $ iDesiredWidth , $ iDesiredHeight , $ aImageInfo [ 0 ] , $ aImageInfo [ 1 ] ) ; return $ this -> _resize ( $ aImageInfo , $ sSrc , null , $ sTarget , $ iWidth , $ iHeight , $ iUseGDVersion , $ myConfig -> getConfigParam ( 'blDisableTouch' ) , $ myConfig -> getConfigParam ( 'sDefaultImageQuality' ) ) ; } return false ; }
Resizes image to desired width and height, returns true on success.

@param string $sSrc           Source of image file
@param string $sTarget        Target to write resized image file
@param mixed  $iDesiredWidth  Width of resized image
@param mixed  $iDesiredHeight Height of resized image

@return bool
Resizes image to desired width and height returns true on success .