How to make a GIF type video with iMovie
Drag and drop your video from the Finder into your first slide. If needed, edit Document’s size to the required size of the final gif image. If needed, trim video in Format->Movie tab. Export Using File->Export to->Animated Gif.