graph TD A[Start: Receive compliant-text-and-keywords] --> B[Craft Image Prompt] B --> C[Generate T-Shirt Design] C --> D{Background Already Transparent?} D -- No --> E[Remove Background via remove.bg API] D -- Yes --> F[Resize to 4500x5400] E --> F F --> G[Upscale to 300 DPI via AI upscaler API] G --> H[Validate Final Specs] H --> I{Meets Requirements?} I -- No --> C I -- Yes --> J[Return new-tshirt-design-png] subgraph Input/Output A J end subgraph Image Generation B C end subgraph Image Processing D E F G end subgraph Quality Control H I end