My first batch of 40 assets died at the metadata step. I had the art, the zips, everything. Adobe rejected the CSV in seconds. Wrong header. Vecteezy next. Wrong header. Dreamstime after that. Wrong header. Three rejections in one afternoon because I typed column names from memory instead of checking what each platform actually wanted.
Now one command writes the header they demand, and nothing else.
The problem was never art
Making the asset is easy. The four things that actually stall you:
- Metadata. Adobe wants 5 columns. Vecteezy wants 4. Dreamstime wants 15. Type one header wrong and the whole CSV dies. Automated rejection, no human ever looks at it.
- Double-posting. Run your batch script twice and you post the same asset twice. Fastest way to get an account flagged.
- Docs into products. You have the content, but a raw markdown file is not a product. It needs to look like one.
- Packaging. A zip with no cover sells nothing. A bare file looks unfinished next to everyone else's polished thumbnail.
So I built four scripts. No framework, no cloud account, no third-party service.
The four scripts
make_metadata.py builds the upload CSV from a folder of files. It writes the exact header each platform demands. Adobe gets 5 columns, Vecteezy gets 4, Dreamstime gets 15. That's it. No extras, no "helpful" additions that get you rejected.
python make_metadata.py ./my-assets --platform adobe --out metadata.csv --ext .jpg Pass --titles titles.json to supply real titles and keywords. Without it, the filename gets title-cased and used as the title. Fine for a first pass, replace it before you submit.
upload_tracker.py is a ledger that remembers what you already posted. A re-run never double-posts because the script checks the ledger before doing anything.
python upload_tracker.py pending items.txt python upload_tracker.py done "asset-001.jpg" python upload_tracker.py status md2pdf.py turns a markdown file into a styled PDF. Headings, tables, lists, links all render clean. One command, one output file.
pack_product.py bundles the product. It zips the files and renders a cover at 1280×720 plus a thumbnail at 600×600.
python pack_product.py my-product "My Product" "A short subtitle" 9 That writes my-product.zip, my-product-cover.jpg, and my-product-thumb.jpg into a _system folder. Point it elsewhere with --dir or the PACK_ROOT environment variable. No editing the script.
Two dependencies, and only two
pack_product.py uses Pillow for the cover rendering. md2pdf.py uses reportlab for the PDF. The other two scripts use the standard library alone. No install needed at all for metadata and tracking.
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt That installs Pillow and reportlab. Nothing else.
The folder layout that keeps this from becoming a junk drawer
A catalogue without a fixed structure turns into chaos fast. This is what I use:
project/ assets/ raw output, one file per asset output/ ready-to-submit files + metadata.csv packs/ finished product zips + covers research/ notes and sources scripts/ these tools Keep research/ forever. Your notes and scrape logs are the raw material for future products. I deleted mine once to clean up. Mistake I will not repeat.
Running on a tiny server
This whole pipeline ran on 1 vCPU, 2 GB RAM, no GPU. It works because of a few habits I learned the hard way:
- One process at a time. Never fan out image jobs in parallel on a 1-core box. You will lock it up.
- Free memory between items. Call
gc.collect()after each asset. - Measure peak RSS, not average.
resource.getrusage(RUSAGE_SELF).ru_maxrsstells you the real ceiling. Average hides the spike that kills the process. - Process one file per subprocess for heavy render steps. That way memory actually gets returned to the OS.
- Render at the resolution you need. Inspecting a preview at 60 dpi beats rendering at 300 and watching the box die.
The register on this: 39 products packaged, 856 MB of output, roughly 19,000 lines of pipeline code in the parent project, 300+ pages of research behind the rules these scripts enforce. All validated on that same 1 vCPU / 2 GB RAM box.
What this came from
These four scripts are the packaging layer. In the full pipeline they sit under a free stack: Hermes Agent for orchestration, 9Router for LLM access. Both cost $0. The scripts do the work, the stack schedules it.
The register from the full system: 1,860 assets made, 1,077 ready or submitted, first paid sale at $2.80. Not a fortune. But it is proof the pipeline runs end to end without me babysitting it.
The four scripts here are the exact ones that packaged those products. If you want the whole system, the full playbook is available. If you only want the packaging layer, these scripts are it.
Building digital products? Free guides & kits for digital product sellers.