brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Preview shows the individual frames of an animated GIF in its sidebar

Preview
~/tips/tip-preview-animated-gif-frames

View > Thumbnails show the Preview sidebar

Open a GIF in Preview and look at each frame in the thumbnail sidebar.

A GIF is just a stack of pictures, and sometimes I want one specific frame instead of the whole loop. Preview can show the stack.

Open the animated GIF in Preview. If the sidebar is not visible, choose View > Thumbnails. In the sidebar, click the arrow next to the file name and Preview lists the frames of the animation. Click the arrow pointing down to hide them again.

That is the whole trick, and it answers a few small questions quickly: how many frames there are, which one is the sharpest, and where a loop actually starts and ends.

You do not need Preview just to watch a GIF. Apple’s page says that you can select the file in Finder and use Quick Look instead. If the preview does not appear, press and hold the Space bar.

Space bar   Quick Look on the selected GIF in Finder
View > Thumbnails   show the Preview sidebar

I’d use Quick Look when I only want to know what is in a file and Preview when I need to look at the frames. Both are already on the Mac, which beats installing an app for a ten-second job.

One caveat: Apple’s page covers viewing the frames. It does not describe exporting a single frame or editing the animation, so treat this as a viewer.

Further reading: View an animated GIF's frames in Preview – Apple Support

Going deeper: Guide: keep your Mac apps in a Brewfile, so a new MacBook is one command away

More Preview tips Tools > Add Bookmark Preview can put a password on a PDF when you export it All Preview tips (3) All topics

Link