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 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 toscreenshots.json. - The review app (
shotsift) is a terminal app. It shows the list, the image and its text. Pressdand the photo goes to Recently Deleted in Photos. The app never changes the JSON, so the text stays after the photo is gone.
./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