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.
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
- Static image platforms (most blog templates, some CMS upload fields) only accept stills.
- Smaller file size — even the first frame as a JPEG is usually 10× smaller than the GIF.
- Compatibility — some apps refuse to render GIF entirely.
The native way: Preview
Preview opens the GIF but treats it as a multi-page document.
- Open the GIF in Preview.
- In the sidebar (View → Thumbnails) pick the frame you want.
- File → Export.
- Choose JPEG or PNG.
- 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
- Open Melt.
- Drag your GIF(s) in.
- Pick JPEG (small) or PNG (lossless, supports transparency).
- Set quality if JPEG.
- Click Compress.
JPEG or PNG?
- JPEG for photographic GIFs (rare, but they exist) or anywhere file size matters.
- PNG for graphic GIFs (memes, screen recordings, anything with sharp edges or transparency). JPEG will fill any transparent pixels with white.
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.
More Melt tips
-
Receive iPhone photos as JPG via AirDrop (not HEIC)
AirDropping photos from iPhone keeps landing them as HEIC files on your Mac. Here's how to get them as JPG instead.
-
AVIF on Mac — opening and converting AVIF images
AVIF is the next-gen image format that's even smaller than WebP. Here's how to open and convert AVIF files on macOS.
-
How to batch compress a folder of photos on Mac
Compressing 200 photos one at a time is its own form of suffering. Here's how to batch compress images on macOS.
-
What's the best image format for the web (and how to export it on Mac)?
JPEG, PNG, WebP, AVIF, SVG — they each have a job. Here's how to pick the right one for the web and export it from your Mac.