BxDolImageResize::_grayscale PHP Method

_grayscale() public method

private functions are below -------------------------------
public _grayscale ( $sSrcImage, $sDstImage = '' )
    function _grayscale($sSrcImage, $sDstImage = '')
    {
        $this->_sError = '';
        try {
            $this->_oManager->make($sSrcImage)->greyscale()->save($sDstImage ? $sDstImage : $sSrcImage, $this->_iJpegQuality);
            chmod($sDstImage ? $sDstImage : $sSrcImage, BX_DOL_FILE_RIGHTS);
        } catch (Exception $e) {
            $this->_sError = $e->getMessage();
            return IMAGE_ERROR_WRONG_TYPE;
        }
        return IMAGE_ERROR_SUCCESS;
    }