public function decode($bytes){
        $bytes->setPosition(0);
        $blocks = $this->decodeToBlocks($bytes);

        return $this->expandBlocks($blocks);
    }
public function decode($bytes){
        $bytes->setPosition(0);
        $blocks = $this->decodeToBlocks($bytes);

        return $this->expandBlocks($blocks);
    }
public function decode ( $ bytes ) { $ bytes -> setPosition ( 0 ) ; $ blocks = $ this -> decodeToBlocks ( $ bytes ) ; return $ this -> expandBlocks ( $ blocks ) ; }
Decode GIF into array of data for easy use in PHP userland.

@param GifByteStream $bytes Decode byte stream into array of GIF blocks.

@return array Array containing GIF data
@throws \Exception
Decode GIF into array of data for easy use in PHP userland .