First batch died at CSV upload. Adobe reject in 4 seconds. Header wrong. 200 files, zero accepted. Fixed header, lost afternoon. That failure built these four scripts.
## What breaks first
Art fun. Upload not. Three things stall every solo maker:
1. **Metadata.** Adobe want 5 columns exact. Vecteezy want 4. Dreamstime want 15. Wrong header, instant reject. No warning, no partial credit.
2. **Double-posting.** Run batch twice, account flagged. Manual tracking fails after 50 assets.
3. **Packaging.** Bare zip no cover. Looks amateur. Sells worse.
4. **Doc to product.** Have content in Markdown. Need PDF that looks like product. Manual conversion slow.
These scripts fix all four. No framework. No cloud account. Two dependencies total: Pillow for covers, reportlab for PDF. Other two scripts stdlib only.
## make_metadata.py: exact headers, nothing else
This script builds upload CSVs from folder of files. Three platform modes:
bash
python make_metadata.py ./my-assets --platform adobe --out metadata.csv --ext .jpg
python make_metadata.py ./my-assets --platform vecteezy --out vecteezy.csv --ext .jpg
python make_metadata.py ./my-assets --platform dreamstime --out dreamstime.csv --ext .jpg
Adobe header: 5 columns. Vecteezy: 4. Dreamstime: 15. Script writes exact header each platform demands. Not approximate. Not "close enough". Exact.
Optional `--titles titles.json` for real titles and keywords. Without it, filename title-cased as title. Fine for first pass. Replace before submit.
Why this matters: review checks header first. Wrong header means reject before human sees your art. Script removes that failure mode entirely.
## upload_tracker.py: ledger prevents double-post
bash
python upload_tracker.py pending items.txt # shows what NOT done yet
python upload_tracker.py done "asset-001.jpg"
python upload_tracker.py status
Simple ledger. Remembers what posted. Re-run batch, pending list shrinks. No double-post possible.
Fastest way to get account flagged: run batch twice. This script makes that impossible. Stdlib only. No database, just a file.
## md2pdf.py: Markdown to styled PDF
bash
python md2pdf.py content.md product.pdf "My Product Title"
One command. Handles headings, tables, lists, links. Uses reportlab. Output looks like product, not raw text dump.
Content already exists in research notes. This script turns it into sellable format. No manual layout work.
## pack_product.py: zip plus real cover
bash
python pack_product.py my-product "My Product" "A short subtitle" 9
Writes three files: `my-product.zip`, `my-product-cover.jpg` (1280x720), `my-product-thumb.jpg` (600x600). Output goes to `_system` folder. Point elsewhere with `--dir` or `PACK_ROOT` env var. No script edit needed.
Cover sells. Bare file does not. Pillow renders both sizes. One command, three outputs.
## Folder layout that scales
Catalogue turns into junk drawer without fixed structure. This kit assumes:
plaintext
project/
assets/ raw output (one file per asset)
output/ ready-to-submit files + metadata.csv
packs/ finished product zips + covers
research/ your notes and sources
scripts/ these tools
Keep `research/` forever. Scrape logs and notes are raw material for future products. Deleting them to "clean up" is mistake this project made once. Won't repeat.
## Tiny server notes
Whole pipeline ran on 1 vCPU, 2 GB RAM, no GPU. Works because of habits:
- One process at a time. Never fan out image jobs in parallel on 1-core box.
- `gc.collect()` after each asset. Free memory between items.
- Measure peak RSS, not average. `resource.getrusage(RUSAGE_SELF).ru_maxrss` tells real ceiling.
- One file per subprocess for heavy render steps. Memory returned to OS.
- Render at resolution needed. Preview at 60 dpi beats 300 dpi inspection.
## Real numbers from this work
These scripts packaged 39 products, 856 MB output. Part of larger pipeline: ~19,000 lines code, 300+ pages research behind rules scripts enforce. First paid sale: $2.80. Not retirement money. Proof pipeline works end to end.
Total assets made: 1,860. Ready or submitted: 1,077. Gap between those numbers is the work these scripts automate.
## What these scripts plug into
Four scripts here are packaging layer. In full pipeline they sit under free stack: Hermes Agent for orchestration ($0), 9Router for LLM access (local proxy). Full system called Digital Asset Factory. Built from this exact work. Not theory. Working pipeline that produced real sales.
[Get digital asset factory](https://revanzart-shop.revanzart.workers.dev/go/digital-asset-factory?src=devto)
Building digital products? Free guides & kits for digital product sellers.
Top comments (0)