Atomik Meme Manager uses a local vision model to rename, describe, categorize, deduplicate, and search a folder full of memes — without uploading the collection anywhere.
I had about 2,000 memes saved on my computer.
Some came from chats.
Some from Reddit.
Some had been sitting in Downloads for years.
And almost all of them had names like:
5b5e2e0.jpg
IMG_48392.png
download_7.gif
Completely useless.
I knew the exact meme I wanted.
I could picture it.
I remembered the joke.
I remembered roughly what was written on it.
But none of that information existed in the filename.
So finding anything meant scrolling through hundreds of thumbnails until I either found it or gave up.
At some point I realized this wasn’t really a meme collection.
It was a write-only archive.
Things went in.
Nothing ever came out.
So I built Atomik Meme Manager.
The idea is simple:
Point it at a messy folder of memes and let a local vision model turn that folder into an organized, searchable library.
No cloud vision API.
No account.
No API key.
No uploading thousands of weird images from the last ten years to somebody else’s server.
One Command In, a Library Out
At the simplest level, Atomik Meme Manager takes an input folder and an output folder.
It analyzes each meme.
Then it gives the file a useful name.
Instead of:
5b5e2e0.jpg
you might end up with something like:
guy-staring-at-monitor-in-disbelief.jpg
Next to that file, it creates a JSON metadata file containing what the model understood about the meme.
Then a second pass looks at the collection as a whole and sorts the files into categories based on what is actually there. The project handles still images, GIFs, and videos, and the output structure separates those media types inside each category.
The whole idea is:
messy folder
↓
local vision model
↓
useful filenames
↓
metadata
↓
categories
↓
searchable library
Why Build This Now?
The idea itself isn’t particularly new.
People have been using image recognition to organize files for years.
The difference is that small local vision models are finally useful enough and fast enough for this kind of job.
The default fast profile currently uses qwen3.5:4b through Ollama.
That model is roughly a 3.4 GB download in the recommended quantization, and the project measured around four seconds per meme after the initial model load on an RTX 3060 Ti with 8 GB of VRAM.
That changes the economics completely.
Processing 2,000 memes is no longer a ridiculous weekend-long experiment.
It’s something I can start and leave running on hardware I already own.
And the Memes Stay Local
This part matters to me.
I already use dedicated photo-management software for actual photographs.
That’s a different problem.
But memes are still personal data in a strange way.
A meme folder can reveal:
- conversations
- interests
- politics
- private jokes
- relationships
- screenshots
- work references
- things you probably forgot you saved
I didn’t want to hand thousands of those files to a remote image-recognition service simply to get better filenames.
Atomik Meme Manager talks to an Ollama server running locally or on your LAN. The vision model is downloaded once, then analysis happens through that Ollama instance rather than a cloud vision API. The repository explicitly describes the tool as using local Ollama inference with no cloud calls or API keys.
The workflow is basically:
meme
↓
local Ollama server
↓
local vision model
↓
metadata
Once the model is installed, your meme itself doesn’t need to leave your environment.
A Meme Is More Than What’s in the Picture
The obvious first step is image description.
Show the model a meme.
Ask:
What’s happening here?
But that alone isn’t enough.
A useful meme archive needs much more context.
For each item, Atomik Meme Manager creates a metadata sidecar containing fields such as:
- title
- full description
- OCR text
- tags
- subjects
- meme type
- recognized template
- tone
- topics
- language
- NSFW status
- confidence
It also records technical information about the source and processing, including the original filename and model-related details.
So instead of storing only:
funny-office-meme.jpg
you now have structured information describing why the image is funny and what is actually in it.
That’s what makes proper search possible later.
Why a JSON File Beside Every Meme?
I deliberately didn’t want the metadata locked inside one giant database.
Each media file gets its own .json sidecar.
So you might have:
guy-staring-at-monitor-in-disbelief.jpg
guy-staring-at-monitor-in-disbelief.json
That sidecar travels with the file.
Move the pair somewhere else?
The description moves with it.
Back it up?
The metadata gets backed up too.
Lose the application’s internal search index?
The sidecars are still there.
The project’s own internal cache is rebuildable from those sidecars, which makes the files themselves the durable source of truth.
I like that design much more than creating a library that only makes sense as long as one database remains intact.
OCR Needed Its Own Pass
One thing I learned quickly:
small vision models don’t always do everything equally well when asked for too much at once.
If I asked the model to:
- describe the meme
- understand the joke
- identify subjects
- generate tags
- classify tone
- and transcribe all the text
in one request, the OCR was often the thing that quietly disappeared.
The repository documents the same observation: with the default 4B model, OCR text inside the combined analysis was often missing on text-heavy images, while a dedicated OCR call was much more reliable.
So the default pipeline uses a separate OCR pass.
First:
Read the text.
Then:
Understand the meme.
The OCR result can even be fed back into the main analysis as context.
That small change made a big difference.
Because for memes, the words often are the joke.
Videos and GIFs Need a Different Approach
A still image is easy.
A video isn’t.
You can’t understand a reaction clip properly by looking at only one random frame.
The joke often depends on what changes.
So Atomik Meme Manager samples multiple frames evenly across the clip and sends them to the vision model together, in chronological order.
The default is six frames for videos and GIFs. For video files, FFmpeg extracts the frames while FFprobe provides technical information such as duration, frame rate, frame count, and whether audio is present.
The prompt also matters.
I don’t ask:
Describe frame one. Describe frame two. Describe frame three.
I ask:
What happens over time, and why is this funny?
That produces much more useful metadata.
Because the meme isn’t six separate pictures.
It’s one sequence.
Tall Comics Need Special Treatment Too
There is another annoying edge case:
very tall images.
Think:
- multi-panel comics
- long screenshots
- vertical meme strips
If you take a 30,000-pixel-tall comic and shrink the entire thing to fit a normal vision-model input, the text becomes unreadable.
So Atomik Meme Manager can split tall images into overlapping tiles.
Those tiles are sent together so the model can read the panels without destroying their resolution. The repository currently enables tall-image tiling based on aspect ratio and image length, with configurable overlap and tile limits.
Instead of:
giant comic
↓
squash to tiny unreadable image
you get:
giant comic
↓
tile 1
tile 2
tile 3
↓
combined analysis
It sounds like a small implementation detail.
But those details determine whether a tool actually works on a real messy archive instead of only on perfect demo images.
Two Thousand Files Means the Tool Must Survive Failure
This is another difference between a demo and something I actually want to use.
Processing 2,000 files is not instant.
It’s something I start and walk away from.
That means the tool needs to assume:
- the machine may restart
- Ollama may stop
- a corrupt file may appear
- I may cancel the process
- something may fail halfway through
I don’t want to restart from zero.
Every source file is therefore identified using the SHA-256 hash of its contents.
Not the filename.
The actual bytes.
If I rerun the process and the tool has already seen that exact content, it skips it. If two files with different names contain identical bytes, only one copy needs to be processed.
So:
funny.jpg
meme-copy.jpg
reddit-download-2847.jpg
can all turn out to be the same file.
The filename doesn’t matter.
The content does.
Rerunning Should Be Boring
I like tools that are safe to run twice.
Run Atomik Meme Manager once.
Interrupt it.
Run it again.
Already processed files are skipped.
Duplicates are recognized.
The remaining items continue.
That means repeating the command is not something I have to be afraid of.
And the internal index isn’t the only protection.
If its cache is ever stale or missing, the program reconciles it against the sidecars already on disk before processing.
The goal is simple:
a restart shouldn’t create duplicates or make the model redo hours of work unnecessarily.

Deleting Originals Requires Proof
The tool can optionally clean up the source folder while it processes.
That sounds dangerous.
So I made the rule conservative.
The original is not removed merely because the new file was written.
The program first writes the output media and its metadata sidecar.
Then it reads the sidecar back.
Only after the output pair is verified does it remove the source.
If an item fails, the original stays where it is.
That’s the kind of boring safety check I want around file-management automation.
Then the Collection Categorizes Itself
Once everything has been analyzed, the second stage begins.
This time, the vision model doesn’t need to look at the images again.
The tool already has:
- titles
- descriptions
- tags
- topics
- tone
- meme types
So a text-model pass looks at the collection as a whole and invents a useful set of categories.
The current default discovers up to nine main categories and adds an others bucket as the tenth. Files are then organized into numbered folders, each with separate image, GIF, and video subfolders.
That means the categories reflect your collection.
Not some universal taxonomy I invented before seeing the memes.
Your library might naturally produce:
01-programming
02-work
03-reaction
04-gaming
05-animals
06-relationships
...
Someone else’s collection might look completely different.
I like that much more than forcing every meme archive into the same predefined list.
Some Categories Should Not Be Invented
There are also cases where the tool already knows where something belongs.
NSFW material is one example.
When enabled, anything flagged NSFW goes into a pinned:
00 - NSFW
category instead of being mixed into automatic discovery.
Input folders can also act as category hints.
So if I already have:
input/
reaction-shots/
those files can keep that category rather than letting the model invent something new.
That gives me a nice balance.
Let AI organize what is messy.
Respect structure when I already created it deliberately.
Folders Are Good. Search Is Better.
Once every meme has structured metadata, folders almost become secondary.
Because now I can search the meaning of the collection.
Atomik Meme Manager includes a local browser interface for this.
It gives me a gallery where I can search not only filenames, but the metadata the model generated.
That includes things like:
- descriptions
- OCR text
- tags
- topics
- categories
The current web UI uses full-text search with typo-tolerant fallback and supports filters for things like category, tag, type, favorites, and NSFW state.
So now I can search:
guy angry at printer
even if those words never appeared in the original filename.
That’s the point where the folder stops being an archive and becomes an actual library.
The Gallery Is Deliberately Read-Only
This was another design choice I cared about.
The web interface is for looking.
Not silently reorganizing my collection.
It doesn’t move, rename, or delete the files in the library. Its library-facing behavior is read-only; the server maintains its own local index and thumbnails separately.
That separation keeps the architecture easier to trust.
The CLI does the organization.
The gallery lets me browse it.
Duplicate Detection Goes Beyond Identical Files
SHA-256 finds exact duplicates.
But meme collections often contain near-duplicates too.
Maybe one version was:
- resized
- recompressed
- slightly cropped
- saved from another website
Those files no longer have identical bytes.
So the gallery also creates a perceptual hash when generating thumbnails.
That makes it possible to surface files that look nearly identical, not just files with the same checksum.
That’s extremely useful in an archive built from years of random downloads.
Because I apparently saved the same memes more often than I care to admit.
I Also Wanted a Safe Way to Experiment
There are a few quality-of-life features I always want in this kind of tool.
A dry run shows what will happen without calling the model or modifying files.
A check command verifies the environment.
A limit option lets me process ten files first rather than discovering a configuration problem at meme number 1,400.
And there are two main model profiles:
fast
and
accurate
The default fast profile uses the 4B Qwen3.5 model. An accurate profile uses the larger 9B model for better category consistency at the cost of higher memory use and slower inference.
That’s exactly how I want to test something like this.
Start small.
See what the output looks like.
Then unleash it on the disaster folder.
It Isn’t Trying to Replace My Photo Library
This is important.
Atomik Meme Manager is not meant to become my universal photo-management system.
I already have tools for actual photographs.
Family photos have different requirements:
- face recognition
- dates
- locations
- albums
- camera metadata
- sharing
- backup
Memes are different.
They’re mostly about:
What is this?
Why is it funny?
What text is on it?
How do I find it again?
Atomik Meme Manager is deliberately narrow.
I prefer tools that are sharp at one job over tools that try to own everything.
What You Need
The current project requires:
- Python 3.11+
- an Ollama server, local or reachable on your LAN
- FFmpeg and FFprobe if you want video support
Still images and GIFs don’t require FFmpeg for processing, but video frame extraction and probing do.
The recommended fast model is:
ollama pull qwen3.5:4b
Then the rough workflow is:
atomik-meme check
Preview first:
atomik-meme process ./input ./output --dry-run
And then:
atomik-meme run ./input ./output
That processes the files and performs categorization.
This Is Exactly the Kind of Local AI I Like
There is a lot of discussion about AI replacing complicated human work.
Honestly, one of my favorite uses is much less dramatic.
I had a stupid folder.
I couldn’t find anything in it.
A local vision model could look at each file, describe it, and give me enough metadata to make the whole collection useful again.
That’s it.
No grand claim about artificial general intelligence.
Just:
computer, please tell me what these 2,000 badly named files actually are.
And because the model runs locally, I don’t have to choose between organization and privacy.
That combination is becoming much more interesting as small multimodal models improve.
Small Models Change What Is Worth Automating
A few years ago, I probably wouldn’t have built this.
The vision models I could reasonably run at home were either too limited or too slow.
Cloud models could do it, but then I had to upload everything.
Now a roughly 4B multimodal model can process this kind of workload at a practical speed on an ordinary gaming GPU. Ollama’s current Qwen3.5 family includes vision-capable 4B and larger variants, making this kind of local pipeline much more accessible.
That creates a whole category of new automation opportunities.
Not because the models suddenly became magical.
Because they finally became cheap and fast enough to use on boring problems.
And boring problems are usually where automation saves me the most time.
My Meme Folder Finally Became Useful
My actual library ended up with around 1,800 memes organized into a dozen folders.
But the number isn’t really the interesting part.
The real change is this:
Before:
I know I have that meme somewhere.
After:
Search for what I remember about it.
That’s a completely different experience.
The filenames finally mean something.
The collection has metadata.
Duplicates are visible.
Videos are searchable.
Comics are readable.
And the folder isn’t a black hole anymore.
Who Is This For?
Probably someone with an embarrassingly large folder of internet garbage.
A collection assembled from:
- group chats
- Discord
- downloads
- forums
- screenshots
- years of “save image as”
You have a computer with enough hardware to run a small local model.
And you’d rather not upload the entire thing to a cloud vision API.
That’s the person I built this for.
Not everybody needs a meme-management system.
But if you immediately recognized the pain of knowing the exact image you want while staring at 2,000 meaningless filenames…
you probably do.
Go Find Your Memes
This project started with a very small annoyance.
I had files.
I couldn’t find them.
The interesting part was realizing that modern local vision models finally make it practical to solve that problem properly.
Not with manually maintained tags.
Not with a giant renaming session.
Not with a remote API.
Just:
input folder
↓
local AI
↓
organized, searchable library
That’s my favorite kind of AI project.
Something runs quietly on hardware I already own.
It solves one real problem.
And afterward, I don’t have to think about the problem anymore.

Atomik Factory is where I document the software, scripts, AI tools, automations, and experiments I build for my own workflows — around technology, privacy, productivity, and open source.
Most projects begin because something is repetitive, disorganized, or annoying enough that I finally decide to fix it.
Then I build the smallest useful tool I can.
I learn from it.
And I document it so I can find it again later.
If somebody else has the same ridiculous problem, even better.
Build. Learn. Share.
Atomik Meme Manager is free and open source under the GNU General Public License v3.0 or later.
Source:
github.com/atomikfactory/atomik-meme-manager
Go find your memes.