public function getAnimation()
    {
        // No images to process.
        if (0 === count($this->frames)) {
            return false;
        }

        // Process images as animation.
        $this->addGifHeader();
        for ($i = 0, $frameCount = count($this->frames); $i < $frameCount; $i++) {
            $this->addFrameData($i, 1 / $this->frameRate * 100);
        }
        $this->addGifFooter();

        return $this->gifData;
    }