public function updateGIFPropertiesFromLocalFile($inputPath, $backgroundColorIndex, $pixelAspectRatio, $interlaced, $outPath)
    {
        //check whether files are set or not
        if ($inputPath == '')
            throw new Exception('Input file not specified');

        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/gif?backgroundColorIndex=' . $backgroundColorIndex . '&pixelAspectRatio=' . $pixelAspectRatio;

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

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

        $v_output = Utils::validateOutput($responseStream);

        if ($v_output === '') {
            Utils::saveFile($responseStream, AsposeApp::$outPutLocation . $outPath);
            return $outPath;
        } else {
            return $v_output;
        }
    }
public function updateGIFPropertiesFromLocalFile($inputPath, $backgroundColorIndex, $pixelAspectRatio, $interlaced, $outPath)
    {
        //check whether files are set or not
        if ($inputPath == '')
            throw new Exception('Input file not specified');

        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/gif?backgroundColorIndex=' . $backgroundColorIndex . '&pixelAspectRatio=' . $pixelAspectRatio;

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

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

        $v_output = Utils::validateOutput($responseStream);

        if ($v_output === '') {
            Utils::saveFile($responseStream, AsposeApp::$outPutLocation . $outPath);
            return $outPath;
        } else {
            return $v_output;
        }
    }
public function updateGIFPropertiesFromLocalFile ( $ inputPath , $ backgroundColorIndex , $ pixelAspectRatio , $ interlaced , $ outPath ) { //check whether files are set or not if ( $ inputPath == '' ) throw new Exception ( 'Input file not specified' ) ; 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/gif?backgroundColorIndex=' . $ backgroundColorIndex . '&pixelAspectRatio=' . $ pixelAspectRatio ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: uploadFileBinary ( $ signedURI , $ inputPath , 'xml' , 'POST' ) ; $ v_output = Utils :: validateOutput ( $ responseStream ) ; if ( $ v_output === '' ) { Utils :: saveFile ( $ responseStream , AsposeApp :: $ outPutLocation . $ outPath ) ; return $ outPath ; } else { return $ v_output ; } }
Update GIF Image Properties without 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 without storage .