I let a local Gemma 4 name my screenshots (and it caught my fake password)
Описание и применение
Автоматическое переименование скриншотов и обнаружение секретов с помощью локальной модели Gemma 4 ускорило процесс с 10‑15 минут до 25 секунд и предотвратило утечку пароля.
Задача
Manually renaming many screenshots is tedious and error‑prone, and screenshots may contain sensitive data that should not be shared.
Результат
Renamed eight screenshots in 25 seconds versus 10‑15 minutes manually, and automatically flagged a fake password with no false positives.
Рабочий процесс
- Scan each image in the folder
- Use a local Gemma 4 model via Ollama to generate a one‑sentence description and a "sensitive: yes/no" flag
- Convert the description into 2‑5 hyphenated words for the filename
- Perform a dry run to preview changes
- Apply the renaming with --apply, ensuring no overwrites and logging to CSV
Доказательства
Turns "Screenshot 2026-10-11 173802.png" into "sql-show-chunks.png". A local Gemma 4 model looks at each screenshot, describes it and suggests a name that says what's inside.
It also flags screenshots that seem to contain a password or a key, before they end up in a repo or a blog post.
I could fix what broke. The endless names, the copied example and the ignored content were all fixed by changing things I fully control: the output limit, the prompt and the number of steps.
By hand, last week: about 10 to 15 minutes for 7 screenshots (look, think of a name, F2, type). With the namer: 8 screenshots in 25 seconds (from 12:26:49 to 12:27:14 in the rename log), plus about a minute to read the dry run.
- Дата записи: 2026-10-25T13:11:25.307Z