public function updatePSDPropertiesFromLocalFile($inputPath, $channelsCount, $compression, $outPath)
    {

        if ($channelsCount == '')
            throw new Exception('Channels count not specified');

        if ($compression == '')
            throw new Exception('Compression method not specified');

        if ($outPath == '')
            throw new Exception('Output file name not specified');

        //build URI
        $strURI = Product::$baseProductUri . '/imaging/psd?channelsCount=' . $channelsCount . '&compression=' . $compression . '&outPath=' . $outPath;

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::uploadFileBinary($signedURI, $inputPath, 'xml', 'POST');

        $v_output = Utils::validateOutput($responseStream);
        if ($v_output === '') {
            $folder = new Folder();
            $outputStream = $folder->GetFile($outPath);
            $outputPath = AsposeApp::$outPutLocation . $outPath;
            Utils::saveFile($outputStream, $outputPath);
            return $outputPath;
        } else
            return $v_output;
    }
public function updatePSDPropertiesFromLocalFile($inputPath, $channelsCount, $compression, $outPath)
    {

        if ($channelsCount == '')
            throw new Exception('Channels count not specified');

        if ($compression == '')
            throw new Exception('Compression method not specified');

        if ($outPath == '')
            throw new Exception('Output file name not specified');

        //build URI
        $strURI = Product::$baseProductUri . '/imaging/psd?channelsCount=' . $channelsCount . '&compression=' . $compression . '&outPath=' . $outPath;

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::uploadFileBinary($signedURI, $inputPath, 'xml', 'POST');

        $v_output = Utils::validateOutput($responseStream);
        if ($v_output === '') {
            $folder = new Folder();
            $outputStream = $folder->GetFile($outPath);
            $outputPath = AsposeApp::$outPutLocation . $outPath;
            Utils::saveFile($outputStream, $outputPath);
            return $outputPath;
        } else
            return $v_output;
    }
public function updatePSDPropertiesFromLocalFile ( $ inputPath , $ channelsCount , $ compression , $ outPath ) { if ( $ channelsCount == '' ) throw new Exception ( 'Channels count not specified' ) ; if ( $ compression == '' ) throw new Exception ( 'Compression method not specified' ) ; if ( $ outPath == '' ) throw new Exception ( 'Output file name not specified' ) ; //build URI $ strURI = Product :: $ baseProductUri . '/imaging/psd?channelsCount=' . $ channelsCount . '&compression=' . $ compression . '&outPath=' . $ outPath ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: uploadFileBinary ( $ signedURI , $ inputPath , 'xml' , 'POST' ) ; $ v_output = Utils :: validateOutput ( $ responseStream ) ; if ( $ v_output === '' ) { $ folder = new Folder ( ) ; $ outputStream = $ folder -> GetFile ( $ outPath ) ; $ outputPath = AsposeApp :: $ outPutLocation . $ outPath ; Utils :: saveFile ( $ outputStream , $ outputPath ) ; return $ outputPath ; } else return $ v_output ; }
Update PSD Image Properties without storage.

@param integer $channelsCount Count of channels.
@param string $compression Compression method.
@param string $outPath Name of the output file.

@return string Returns the file path.
@throws Exception
Update PSD Image Properties without storage .