Mosaic Threads is a web-based tool that converts uploaded images into knittable color grid patterns using curated yarn-inspired palettes.
🖼️ Image Upload Upload JPG, PNG, or GIF images directly in the browser
🎨 Yarn-Inspired Color Palettes Convert images into limited, harmonious color sets suitable for knitting
🔲 Grid-Based Pattern Generation Automatically transforms images into stitch-by-stitch charts
🧶 Pattern Simplification (Smoothing) Reduces noise and creates cleaner, more knit-friendly shapes
📏 Custom Pattern Size Adjust pattern width (stitches) to control detail level
📋 Knitting Instructions
Stitch count and size estimation
Color usage breakdown
Row-by-row chart instructions
💾 Download as PNG Export your pattern as an image for offline use
Upload Image → Choose Palette → Adjust Size → Generate Pattern → Download
Knitting is not pixel-perfect — it’s constraint-driven.
This tool prioritizes:
Simplicity over visual accuracy
Limited colors over full-spectrum images
Usability over perfection
A good knitting pattern is one you can actually follow.
HTML5
CSS3
JavaScript (Vanilla)
Canvas API (image processing)
Upload a photo (portrait, object, etc.)
Select a color palette (e.g., Rose, Ocean, Forest)
Choose pattern width (e.g., 40 stitches)
Generate pattern
Download and knit
Experiment without manual charting.
Image upload and preview
Color palette mapping (yarn-inspired palettes)
Grid-based pattern generation
Smoothing for readability
Row-by-row instructions
PNG export
✅ Status: Completed (MVP)
Motif Placement
Place generated pattern onto:
sweater front panel
blanket layout
Center and alignment controls
Pattern Scaling
Adjust pattern to fit specific dimensions
Maintain proportions based on stitch count
Repeat & Layout Options
Repeat pattern across rows/columns
Create tiled designs
Adjustable smoothing levels
Manual color adjustments
Custom palette creation
Stitch density previews
User accounts
Save and manage patterns
Cloud storage
Pattern history
👉 https://flowingcity777.github.io/mosaic-threads/
Active prototype — continuously improving functionality and usability.
This project explores how digital tools can translate meaningful images into physical, handmade creations.
It highlights the intersection of:
UX design creative tools real-world crafting constraints
Suggestions and feedback are welcome!
MIT License
© [Lydia Li/2025]. All rights reserved.
Unauthorized use, modification, or distribution is prohibited.



