
Graphic Placement SystemTeaching AI to place artwork correctly on apparel mockups, regardless of garment style or color.
The AI kept making the artwork the wrong size. The fix was a 500-year-old statue.
About the Project
At NerdKungFu, my online apparel store, licensed products already go live without anyone touching them. I wanted the same automation for our original designs, but the AI couldn’t reliably position the artwork. I designed a placement system that sizes the artwork to the person wearing the shirt, not the shirt itself, and measures height from a fixed point on each garment, with a small amount of human judgment to keep it honest.
A screen printer knows where a chest print belongs. Getting an AI to understand that is another matter.
Primary Challenges
- Artwork came out too small to read as a real print, or so large it ran wall to wall across the shirt.
- Asked for “a good big size,” the AI filled the shirt. Sized to a percentage of the photo, the art landed on the belly.
- Software couldn’t reliably identify collar edges, particularly on black garments where black ribbing blends into black fabric.
The AI was sizing the shirt. It needed to size the person wearing it.
Built With
David Inman - Placement rules, physical measurements, system design, and quality review
Claude Code - AI coding agent that writes and runs the mockup scripts under my direction
Calibrated garment photos - Pixel-to-inch scale, chest line, and recorded collar reference points
Discovery & Audit
Failed Mockups | Size vs. Position | Reference Points
- Compared incorrect mockups across men’s crew shirts, hoodies, women’s v-necks, and youth tees.
- Separated the two problems: height was mostly a measuring issue, and width was the real failure.
- Found that the AI was sizing artwork to the shirt, the photo, or the height limit, never to the person wearing it.
- Set the actual goal: a print that spans the wearer’s chest and sits on flat, printable fabric.
System Design
Chest Line | Body-Based Width | Flat-Cloth Benchmark
- Located the chest line level with the armpits, using Michelangelo’s David as the anatomical reference.
- Defined width by the body: the visible ink must span both sides of the chest, the same on an adult tee and a hoodie.
- Made 14 inches a height ceiling, never a target, so tall art stops there and wide art never reaches it.
- Measured height from the bottom of the woven collar on each garment, the first point where the fabric lies flat.

Build & Operate
Calibrated Map | Automated Placement | Human Review
- Calibrated each blank photo to pixels per inch, checked against real garment measurements, with a half-inch grid laid over it.
- Read each collar by eye with the contrast pushed hard, and recorded it in a table the AI uses from then on.
- Directed Claude Code to build scripts that measure the visible ink, not the transparent canvas, and apply these rules.
- Laid hoodie drawstrings back over the print, and kept a reference sheet and a quick human review on every batch.

Size the Person, Not the Shirt
Every original design needs mockups in multiple colors and four garment styles. Getting the artwork under the collar was the easy part. Getting it the right size was not. Too small and it looks like a pocket print someone forgot to finish. Too big and it runs wall to wall.
I tried the obvious fixes. Asked for “a good big size,” the AI grew square artwork until it hit the 14-inch height limit, which made it nearly 18 inches wide and covered about two-thirds of the shirt. Measuring the image file was no better, because transparent padding counted as artwork. Every fix made a different shirt wrong.

The breakthrough was to stop sizing the print to the shirt and size it to the body inside it. A chest print should span the chest, so I needed to know where the chest actually is. It’s much higher than most people think: level with the armpits, not halfway down the torso. The most honest reference I found was Michelangelo’s David, an anatomically accurate body anyone can look up.
That turned width into a simple test: the visible ink has to span both sides of the chest. The body doesn’t change when the shirt does, so the same width works on an adult tee and a hoodie, the women’s v-neck gets a little extra coverage, and youth shirts get their own size. Fourteen inches is a ceiling for height, never a target. Wide art never reaches it. Only tall, narrow art stops there.

Height was the easier half. Every garment has a different neckline, so I measure from where the printable fabric starts: the bottom of the woven collar, the v-neck binding, or the hood seam. Each body gets its own measured drop below that line. A photo is pixels, not inches, so I calibrated each blank, laid a half-inch grid over it, and read the collar by eye with the contrast pushed hard, because software couldn’t see black ribbing on a black shirt.
The human makes those judgments once per blank. The AI applies them to every mockup after that. I wrote about the process in my LinkedIn article, Benchmarks and Maps: How I Taught AI Where a T-Shirt’s Chest Is.

Now I can supply a print-ready graphic and have it correctly positioned across the available garment styles and colors. The mockups feed into the product-building process, and the finished listings go live. Reference images cover unusual shapes and sizes, while a quick visual review catches anything unexpected.
The larger lesson has little to do with T-shirts. When an AI keeps making the same kind of mistake, adding more instructions and adjusting more numbers may only disguise the problem. Sometimes the missing piece is a reference point so obvious to a human that nobody thought to explain it, like where a chest actually is.
Let’s Connect
When the numbers keep failing, stop adjusting them and find out what you’re measuring from.
I love meeting new people.