Neos\Media\Domain\Service\ImageService::isAnimatedGif PHP Method

isAnimatedGif() protected method

Detects whether the given GIF image data contains more than one frame
protected isAnimatedGif ( string $image ) : boolean
$image string string containing the binary GIF data
return boolean true if gif contains more than one frame
    protected function isAnimatedGif($image)
    {
        $count = preg_match_all('#\\x00\\x21\\xF9\\x04.{4}\\x00(\\x2C|\\x21)#s', $image, $matches);
        return $count ? true : false;
    }