First failure: batch of 40 vectors ready. Metadata CSV wrong header. Adobe rejected all 40 in one upload. No partial review. No warning. Just rejection. Took afternoon to rebuild.
That pain built this pipeline. Now runs on single-core, 2 GB RAM VPS. No GPU. Cost: whatever VPS provider charges for smallest box.
Why tiny server works
Image generation not on server. AI calls happen elsewhere, through API. Server only does boring work: rename files, write CSVs, zip products, render covers. That work needs almost nothing.
Measured peak RSS with resource.getrusage(RUSAGE_SELF).ru_maxrss. Highest spike: cover render at 1280x720, about 180 MB. Rest of pipeline sits under 80 MB. 2 GB plenty.
Rules that keep it alive:
- One process at a time. Never fan out image jobs on 1-core box.
-
gc.collect()after each asset. Python holds memory. Force release. - Heavy render steps run in subprocess. One file per subprocess. Memory returns to OS when subprocess dies.
- Render at needed resolution only. Preview at 60 dpi, not 300.
The four scripts that matter
Making art is fun part. Four things actually stall sellers:
Metadata. Each platform rejects wrong CSV header instantly. No human looks at it. Script checks exact format before upload.
Adobe wants 5 columns, specific order. Vecteezy wants 4. Dreamstime wants 15. One wrong column name, whole batch dead.
make_metadata.py writes exact header each platform demands. Nothing else. Takes folder of files, outputs CSV ready to upload.
Double-posting. Fastest way to get account flagged: run batch twice. Same asset uploaded twice looks like spam. Platform review teams hate it.
upload_tracker.py is a ledger. Remembers what already posted. Re-run safe. Shows pending list, marks items done, gives status.
Both scripts use only Python standard library. No install needed. No dependencies to break.
Turning docs into products. Have content in Markdown. Need it to look like product. md2pdf.py handles it. One command turns Markdown into styled PDF with headings, tables, lists, links. Uses reportlab. Only third-party package needed for this step.
Packaging. Bare file does not sell. Zip with real cover sells. pack_product.py bundles files, renders cover at 1280x720, thumbnail at 600x600. Uses Pillow for images. Second and last third-party package.
Folder structure that prevents junk drawer
Catalogue without fixed structure becomes mess. This layout works:
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. Scrape logs and notes are raw material for future products. Deleted mine once to "clean up". Mistake. Won't repeat.
Real numbers from this setup
- 1,860 assets made total
- 1,077 ready or submitted
- 39 products packaged with these scripts (856 MB output)
- First paid sale: $2.80
- Pipeline code: about 19,000 lines in parent project
- Research: 300+ pages behind rules scripts enforce
Small numbers. Real numbers. First sale small. That is how it starts.
What I would tell past self
Do not build pipeline first. Make 10 assets manually. Learn what hurts. Then automate the pain.
Metadata rejection hurts most. Automate that first. Then double-post prevention. Then packaging. Then docs to PDF.
Four scripts cover 90% of non-creative work. Everything else is art, which is the part you wanted to do anyway.
The scripts here are the packaging layer. In full system they sit under free stack: orchestrator schedules jobs and retries failures, LLM access through local proxy, no monthly SaaS fees.
Full system called Digital Asset Factory. Built from this exact work. Contains working scripts, not tutorial that ends at "here is how you would do it".
Building digital products? Free guides & kits for digital product sellers.
