shotsift: get the text out of your screenshots, then let them go

I do scroll. Come on, everybody does it too. Come on.

My feed knows what I like. It shows me a lot of posts about neural networks, reinforcement learning, AI, ML and other algorithms that I am interested in.

When I see a good one, I take a screenshot. But a screenshot is an image. My biggest problem was getting the content out of it, especially the URLs that a post links to. The Photos app can search for text in images, but it cannot give you that text. At least, I do not know of an app that does.

So I built one. It pulls the text out of every screenshot, so later I can run embeddings or an ontology over it, or group related things together. The other reason: all these screenshots take up a lot of iCloud storage, and I keep getting the email that tells me to upgrade my storage. Now I keep the text and delete the screenshots.

The shotsift review app: a list of screenshots on the left, the image preview and its text on the right

The code is at github.com/mraad/shotsift, MIT licensed. It needs a Mac with Apple Silicon, uv and Rust.

How it works

There are two parts, joined by one JSON file:

  • The scanner (screenshots_to_json.py) looks through a photo folder and finds the screenshots from their metadata: the file name, the tag that the iPhone writes, or a PNG with no camera data. It reads the text on the Mac with GLM-OCR, or with Apple Vision when you want speed. Then it writes everything to screenshots.json.
  • The review app (shotsift) is a terminal app. It shows the list, the image and its text. Press d and the photo goes to Recently Deleted in Photos. The app never changes the JSON, so the text stays after the photo is gone.

Diagram: photo folder, then the scanner, then screenshots.json, then the review app, which talks to the Photos library

./screenshots_to_json.py ~/Pictures --since 2026-09-01
cd review && cargo install --path . && shotsift ../screenshots.json

The text never leaves your Mac. The JSON is plain, so jq or a few lines of Python can search it, or feed it to an embedding model.

Prune me

I hope you find something like this useful. It is working out for me. If you know a better app, tell me. Then we prune this one and move on.

Comments

Popular posts from this blog

How to use Esri Flex API on Android and iPhone

Augmented Reality, iPhone and ArcGIS Server

Image Flare Symbol For Clustered Graphics