OIOyeniyi Isaac
Feb 7, 2026·3 min read

imgstat — giving AI context about your images

#cli#tooling#ai#npm#productivity

LLMs can't see your images. They also can't infer dimensions unless you explicitly tell them. That gap is what imgstat solves.

I needed a simple way for my AI tools to know what kind of images they were working with, without opening files, parsing metadata, or guessing. So I built a small CLI that does one thing well.

imgstat scans a directory and renames images to include their dimensions:

photo.jpg → photo-1920x1080.jpg

Once the size is in the filename, the context becomes obvious, to humans and to AI.

Why this exists

When you're working with AI-assisted coding, filenames are context. But image files usually hide the most important detail.

I wanted something that works recursively, doesn't reprocess files unnecessarily, requires zero configuration, and can run almost anywhere. So I kept it intentionally simple.

Features

  • AI-ready context, with image dimensions embedded directly in filenames
  • Idempotent, so it skips files that are already renamed
  • Recursive, handling deep directory structures
  • Minimal surface area, with no runtime and no dependency explosion

Installation and usage

npm install -g imgstat

imgstat ./images

# You can also download and process directly:
imgstat -u https://example.com/images

Why it's written in Bash

I wanted this to run in as many environments as possible. No framework, no build step, no ceremony. Bash gives you predictable behavior, easy portability, and zero runtime assumptions.

On Windows, this works via WSL (recommended), Git Bash, or any POSIX-compatible shell environment. If you can run shell scripts, you can run imgstat.

Closing

This isn't a big tool. It's a small piece of glue that removes friction, especially when working with AI. Sometimes the best developer experience improvement is just making the context obvious.

Repository: github.com/isaac0yen/imgstat
npm: npmjs.com/package/imgstat

Related posts

Departmental Operations: Why Nothing Works And What We're Going To Do About It
[Technology]
> Aug 2, 2026|4 min read

Departmental Operations: Why Nothing Works And What We're Going To Do About It

Every year new excos inherit WhatsApp groups, lost screenshots, and systems that only worked because one person held it together. Then that person graduates and it all falls apart.

READ_MORE >>
imgstat v2 — giving AI the image context it actually needs
[Technology]
> Feb 26, 2026|3 min read

imgstat v2 — giving AI the image context it actually needs

imgstat started as a tiny renamer. But once I began using it — and really thinking about what AI coding tools *need* — it quickly outgrew that label.

READ_MORE >>
Building a Product
[Technology]
> Feb 2, 2026|3 min read

Building a Product

At some point, speed stops being about how fast you can write features, and starts being about how well your decisions age.

READ_MORE >>