Melt guide

Convert an animated GIF to JPG (or PNG) on Mac

Need a still image from an animated GIF? Here's how to grab the first frame as a JPG or PNG on macOS.

4 min read

You’ve got an animated GIF and your CMS or social platform wants a static image. Or you want a thumbnail of the first frame. macOS technically opens GIFs in Preview, but only the first frame, and exporting from there is fiddlier than it should be.

Why convert

The native way: Preview

Preview opens the GIF but treats it as a multi-page document.

  1. Open the GIF in Preview.
  2. In the sidebar (View → Thumbnails) pick the frame you want.
  3. File → Export.
  4. Choose JPEG or PNG.
  5. Save.

Slow if you only need the first frame of many GIFs.

The native way: sips

sips only converts the first frame by default, which is usually what you want:

sips -s format jpeg animation.gif --out frame.jpg
sips -s format png animation.gif --out frame.png

Folder version:

for f in *.gif; do
  sips -s format jpeg "$f" --out "${f%.gif}.jpg"
done

Extracting a specific frame

If you need a frame other than the first, sips won’t do it. ImageMagick (brew install imagemagick) handles it:

magick "animation.gif[5]" frame.png

That grabs frame 5 (0-indexed). To extract every frame:

magick animation.gif frame_%03d.png

The faster way

Drag the GIF into Melt, pick JPEG or PNG, click Compress. Grabs the first frame as a clean still without you having to think about Preview’s sidebar. Works on a batch of GIFs too. Download Melt.

Convert in Melt

  1. Open Melt.
  2. Drag your GIF(s) in.
  3. Pick JPEG (small) or PNG (lossless, supports transparency).
  4. Set quality if JPEG.
  5. Click Compress.

JPEG or PNG?

What you lose, what you keep

You’re throwing away the animation entirely — that’s the point. If the GIF was originally a video, the visual quality of any single frame is often poor (GIF is limited to 256 colours per frame). The result will look like a low-quality screenshot, not a fresh image. If you want a good still, find the original video and export a frame from that instead.

← All Melt tips