public function updateGIFProperties($backgroundColorIndex, $pixelAspectRatio, $interlaced, $outPath)
    {

        if ($backgroundColorIndex == '')
            throw new Exception('Background color index not specified');

        if ($pixelAspectRatio == '')
            throw new Exception('Pixel aspect ratio not specified');

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

        //build URI
        $strURI = Product::$baseProductUri . '/imaging/' . $this->getFileName() . '/gif?backgroundColorIndex=' . $backgroundColorIndex . '&pixelAspectRatio=' . $pixelAspectRatio . '&interlaced=' . $interlaced . '&outPath=' . $outPath;

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

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $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 updateGIFProperties($backgroundColorIndex, $pixelAspectRatio, $interlaced, $outPath)
    {

        if ($backgroundColorIndex == '')
            throw new Exception('Background color index not specified');

        if ($pixelAspectRatio == '')
            throw new Exception('Pixel aspect ratio not specified');

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

        //build URI
        $strURI = Product::$baseProductUri . '/imaging/' . $this->getFileName() . '/gif?backgroundColorIndex=' . $backgroundColorIndex . '&pixelAspectRatio=' . $pixelAspectRatio . '&interlaced=' . $interlaced . '&outPath=' . $outPath;

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

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $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 updateGIFProperties ( $ backgroundColorIndex , $ pixelAspectRatio , $ interlaced , $ outPath ) { if ( $ backgroundColorIndex == '' ) throw new Exception ( 'Background color index not specified' ) ; if ( $ pixelAspectRatio == '' ) throw new Exception ( 'Pixel aspect ratio not specified' ) ; if ( $ outPath == '' ) throw new Exception ( 'Output file name not specified' ) ; //build URI $ strURI = Product :: $ baseProductUri . '/imaging/' . $ this -> getFileName ( ) . '/gif?backgroundColorIndex=' . $ backgroundColorIndex . '&pixelAspectRatio=' . $ pixelAspectRatio . '&interlaced=' . $ interlaced . '&outPath=' . $ outPath ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ 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 GIF Image Properties on Aspose cloud storage.

@param integer $backgroundColorIndex Index of the background color.
@param integer $pixelAspectRatio Pixel aspect ratio.
@param boolean $interlaced Specifies if image is interlaced.
@param string $outPath Name of the output file.

@return string Returns the file path.
@throws Exception
Update GIF Image Properties on Aspose cloud storage .