private function removeAnimation(\Imagick $object)
    {
        $imagick = new \Imagick;

        foreach ($object as $frame) {
            $imagick->addImage($frame->getImage());
            break;
        }

        $object->destroy();

        return $imagick;
    }
private function removeAnimation(\Imagick $object)
    {
        $imagick = new \Imagick;

        foreach ($object as $frame) {
            $imagick->addImage($frame->getImage());
            break;
        }

        $object->destroy();

        return $imagick;
    }
private function removeAnimation ( \ Imagick $ object ) { $ imagick = new \ Imagick ; foreach ( $ object as $ frame ) { $ imagick -> addImage ( $ frame -> getImage ( ) ) ; break ; } $ object -> destroy ( ) ; return $ imagick ; }
Turns object into one frame Imagick object
by removing all frames except first

@param  Imagick $object
@return Imagick
Turns object into one frame Imagick object by removing all frames except first