A cinematic AI project foundry with luminous glass project cards, planning boards, prototype schematics, and blue-and-amber workshop lighting.
Fourthwall pipeline research 路 2026-05-18 路 free/local-first

T-Shirt Design Production Pipeline

A practical plan for turning a shirt idea into print-ready artwork, mockups, and a Fourthwall-ready product candidate with free or local tooling wherever possible.

Projects / Fourthwall production pipeline

T-Shirt Design Production Pipeline

The pipeline should let Christopher give OpenClaw an idea, then let OpenClaw do the boring production chain: generate, clean, upscale, validate, mock up, and prepare for Fourthwall.

This artifact defines the next practical layer of the Fourthwall project: the design-production pipeline. The purpose is not just to make one good t-shirt image. The purpose is to build a repeatable path from idea to printable product candidate, with enough automation that OpenClaw can do most of the preparation work autonomously and ask Christopher only at the real decision gates.

The key constraint is cost. We should avoid paying for background removal, upscaling, and vectorization. That pushes the pipeline toward local Linux tools and genuinely free API tiers. Paid APIs can remain fallback research options, but the operating path should not depend on them.

Primary output A transparent high-resolution PNG suitable for print-on-demand upload and Fourthwall previewing.
Optional output An SVG/vector version for simple logos, badges, typography, and flat graphic marks.
Review output A mockup/check artifact showing the artwork on light/dark shirts before anything is published.

The target workflow

  1. Christopher gives a t-shirt idea in plain language.
  2. OpenClaw turns it into 2-4 focused visual prompts or design directions.
  3. OpenClaw generates candidate images.
  4. OpenClaw selects the strongest candidates and explains why.
  5. OpenClaw removes the background or generates on a removable flat background.
  6. OpenClaw upscales or vectorizes depending on design type.
  7. OpenClaw checks print readiness: size, transparency, contrast, edges, and shirt color compatibility.
  8. OpenClaw prepares mockups and metadata: title, description, tags, product lane, and likely audience.
  9. Christopher approves or rejects.
  10. Only after approval, OpenClaw can use Fourthwall's API/design pipeline to preview or create the product candidate.

Stage 1: Image creation

The image-generation layer should be flexible. Some t-shirt ideas need illustration, some need logo-style marks, some need typography, and some need a small mascot or emblem. The generator choice should match the design type.

Best immediate path: built-in OpenClaw image generation

For now, the most reliable path is to use the available OpenClaw image generation tool for base artwork. It is already connected, saves generated files into managed media, and supports project-bound images. This is not necessarily the cheapest external API path, but it is the working path we have today.

Free/API candidate: Hugging Face Inference

Hugging Face can be tested as a free or low-friction image generation lane. The free tier is limited and should be treated as a sandbox, not a production guarantee. It may be useful for open-source models, especially if we later want a fully scriptable alternative to built-in generation.

Local candidate: Stable Diffusion/ComfyUI later

A fully local image model would reduce API dependence, but Christopher's hardware constraints matter. This is not the first move. It becomes interesting only if we have a machine/environment that can run it comfortably.

Stage 2: Background removal

Background removal should be local/free first. For t-shirt graphics, the cleanest approach is often to generate on a perfectly flat chroma-key background and remove the key color locally. When the subject is complex, a segmentation model may work better.

Primary local path: chroma-key generation + local removal

Prompt the image model to create the subject on a flat solid background that does not appear in the design. Then remove that color locally. This is especially good for sticker-style characters, symbols, badges, and flat illustrations.

Primary open-source tool: rembg

rembg is a free open-source background removal tool. It can run as a CLI, Python library, or local HTTP server. It supports models such as U2Net and related segmentation models. This is probably our best no-payment background removal candidate.

Fallback APIs

Services such as remove.bg can be useful for tests, but free quotas are limited and we should not build the core pipeline around them. If a tool requires paid credits for regular use, it stays a fallback, not the standard lane.

Stage 3: Upscaling

Print-on-demand graphics usually need high pixel dimensions. A small web image is not enough. The exact target depends on product and printable area, but a practical first target is a large transparent PNG around 4500 px by 5400 px for shirt-style artwork, adjusted to Fourthwall's product template guidance when available.

Primary local candidate: Real-ESRGAN

Real-ESRGAN is an open-source image upscaling/restoration tool with command-line workflows. It can do 2x or 4x style upscales and has models for general imagery and anime/illustration-like content. This is the strongest free/local candidate for upscaling once installed.

Simple fallback: high-quality resize

If the source is already clean and large enough, a normal high-quality resize may be acceptable. This is not the same as true super-resolution, but it may work for flat vector-like graphics and simple marks.

Paid/limited APIs

Clipdrop and similar services can upscale images, but they commonly use credits or paid limits. They should not be part of the no-cost default pipeline.

Stage 4: Vectorization

Vectorization is only appropriate for some designs. It is excellent for simple marks, logos, text badges, silhouettes, high-contrast line art, and sticker-style graphics. It is usually bad for painterly illustrations, detailed mascots, gradients, and textured art.

Primary local candidate: potrace

potrace is an open-source command-line tool that converts black-and-white bitmap art into SVG and other vector formats. It is strongest for single-color or high-contrast designs.

Color vector candidate: VTracer

VTracer is an open-source raster-to-SVG vectorizer that can handle more colorful graphics than potrace. It is a good candidate for multi-color flat designs if we want SVG outputs without paid vectorization services.

Manual/design fallback: SVG from scratch

For clean badges or wordmarks, OpenClaw can sometimes create the design directly as SVG instead of generating a raster image first. This should be used when the desired output is clearly logo-like, not when Christopher wants rich generated art.

Stage 5: Print-readiness checks

Before a design goes to Fourthwall, OpenClaw should run a small checklist:

  • Transparent background present and clean.
  • No visible background halo or matte fringe.
  • Large enough dimensions for the intended product area.
  • Readable at shirt distance, not only zoomed-in on a screen.
  • Works on at least one dark and one light shirt color, or intentionally targets one shirt color.
  • No tiny text that will blur when printed.
  • No accidental fake brand marks, watermarks, or illegible AI-text artifacts.
  • Design has a clear product lane: mascot, badge, field note, slogan, symbol, or illustration.

Stage 6: Mockups

There are two mockup paths.

Local review mockups

OpenClaw can create a simple review image by compositing the transparent design onto a shirt template or flat shirt-color panel. This is enough for Christopher to judge whether the design deserves Fourthwall work.

Fourthwall preview mockups

Fourthwall's Design Pipeline API appears to support creating design previews from product and design placement data. This should become the higher-confidence mockup path once we test it with one approved candidate.

Stage 7: Fourthwall handoff

Once a candidate is approved, the Fourthwall side should eventually be:

  1. Choose product template.
  2. Upload or provide prepared design asset.
  3. Create preview through the Design Pipeline.
  4. Review mockup output.
  5. Only with approval, create the product/offer.
  6. Set title, description, tags, collection, and availability intentionally.
  7. Record the product in the project log so the signal loop can review it later.

Digital product branch

The same production discipline can support digital offers, not only shirts. Instead of print-readiness, the digital branch needs clarity, packaging, delivery, and usefulness checks. A digital product candidate should answer: what practical problem does this solve, who would use it, what file or template do they receive, and what result should they be able to get within an hour?

Candidate digital products include AI workflow checklists, outreach templates, signal-loop review worksheets, product-page copy templates, image-to-video prompt packs, and small implementation guides drawn from real Workshop experiments. These should start small enough to ship and revise, not as giant courses or abstract manifestos.

Branch rule: physical products test visual identity and taste; digital products test whether the Workshop can package practical know-how. Both should feed the same signal loop: publish, observe, learn, and change the next product.

Recommended default stack: OpenClaw image generation for base art, chroma-key/local removal or rembg for transparency, Real-ESRGAN for upscaling, potrace/VTracer only for vector-suitable designs, simple local mockups first, Fourthwall Design Pipeline previews after approval.

Candidate tools

  • Image generation: OpenClaw image generation now; Hugging Face Inference as a free-tier API candidate; local Stable Diffusion later only if hardware/runtime makes sense.
  • Background removal: chroma-key helper locally; rembg CLI/Python/local server; remove.bg only as a limited fallback.
  • Upscaling: Real-ESRGAN local; simple high-quality resize for already-large flat art; paid/credit APIs only as fallback.
  • Vectorization: potrace for one-color/high-contrast art; VTracer for color SVG candidates; direct SVG authoring for simple badges/marks.
  • Mockups: local compositing for review; Fourthwall Design Pipeline for product-specific previews.
  • Product creation: Fourthwall Platform API after approval.

Install/test checklist

The current Linux environment has Python, but the specialized image tools are not globally installed yet. The first implementation step should be a controlled local setup:

  1. Create a private/scratch pipeline folder outside public artifacts for working images.
  2. Install and test rembg in a virtual environment.
  3. Install/test a Real-ESRGAN command-line path or a lightweight alternative.
  4. Install/test potrace and optionally VTracer.
  5. Create one script that accepts an input image and outputs: transparent PNG, upscaled PNG, optional SVG, and a review mockup.
  6. Use one approved t-shirt idea as the first end-to-end test.

What OpenClaw should be able to do autonomously

Once the pipeline exists, OpenClaw should be able to:

  • Turn a shirt idea into several prompt directions.
  • Generate candidate art.
  • Reject weak candidates without wasting Christopher's time.
  • Remove backgrounds and clean transparency.
  • Upscale to print-friendly size.
  • Vectorize only when appropriate.
  • Create review mockups.
  • Draft title, description, tags, and product lane.
  • Ask Christopher for approval before using Fourthwall write actions.

What should stay approval-gated

  • Uploading final assets to Fourthwall.
  • Creating a product/offer.
  • Changing price, visibility, or collection placement.
  • Publishing or promoting the product externally.
  • Spending credits or using paid APIs.

First experiment proposal

The first test should be deliberately small: one t-shirt idea, one primary design lane, two or three generated candidates, one selected winner, one transparent/upscaled PNG, one local mockup, and then one Fourthwall preview only if Christopher approves.

That gives us the signal we need: whether the chain works, where it breaks, what is still tedious, and whether the final design feels good enough to become a product.

Source links

Bottom line

The pipeline is achievable. The right approach is not to rely on one paid all-in-one service. The right approach is a modular chain: generate with the best available model, remove background locally, upscale locally, vectorize only when the design calls for it, create review mockups, and use Fourthwall's Design Pipeline only after the design is worth testing as a product.

If we get this right, Christopher should be able to say: "make me a shirt about this idea," and OpenClaw should return a small set of serious product candidates instead of a pile of disconnected image files.