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.



