Commit 2cf62a3
[autopilot-big] Image Color Extractor + Newsletter 142-145 + 2 collections + 3 guides — 2026-03-23
New feature: Image Color Extractor (/image-palette/)
- Full route at app/image-palette/page.tsx with metadata, structured data, breadcrumbs
- Component src/components/image-palette-page.tsx (~300 lines, pure client-side)
- Canvas API for pixel sampling — no image uploads, fully private
- Quantize-then-k-means color extraction algorithm with weighted RGB distance
- Adjustable color count (4, 5, 6, 7, 8, 10, or 12 colors)
- Each extracted color matched to closest ColorArchive color by perceptual distance
- Per-color detail cards: hex, RGB, HSL, percentage area, archive match link
- Export in HEX, RGB, HSL, CSS custom properties, or JSON (W3C token format)
- One-click copy for individual colors or full export
- 4 sample images (no upload required to try the tool)
- "How it works" section explaining the algorithm
- Related tools cross-links
- Added to site-header nav (tools group), tools page, sitemap, i18n (EN + ZH)
Content updates:
- Newsletter issues: 4 new issues (142-145), total now 146
- sep-2028: Extracting brand color from photography (dominant vs anchor, four-scene test)
- sep-2028: Color in data visualization (four semantic roles, perceptual uniformity)
- sep-2028: Print color management (CMYK gamut, ink limits, Pantone, 6-value spec)
- oct-2028: Color systems at scale (token tiers, change frequency, drift detection)
- Collections: 2 new, total now 59
- data-dashboard: cobalt, teal, amber, crimson, slate — perceptually balanced dataviz palette
- film-neutral: warm parchment, film beige, shadow gray-brown — analog photography register
- SEO guides: 3 new (extraGuides14), total now 100
- extracting-color-from-photography-guide
- color-for-data-visualization-guide
- image-color-extraction-tools-guide
Files changed (9):
- app/image-palette/page.tsx (new)
- src/components/image-palette-page.tsx (new, ~300 lines)
- src/components/site-header.tsx (+currentPath type, +nav item)
- src/components/tools-page.tsx (+image-palette tool card)
- src/lib/i18n.ts (+nav.imagePalette, +tools.imagePalette.name/desc EN+ZH)
- app/sitemap.ts (+/image-palette/ route)
- src/data/newsletter-issues.json (4 new issues, now 146)
- src/lib/collections.ts (+data-dashboard, +film-neutral, now 59)
- src/lib/guides.ts (+3 guides in extraGuides14, now 100)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7d5e62d commit 2cf62a3
File tree
9 files changed
+1047
-2
lines changed- app
- image-palette
- src
- components
- data
- lib
9 files changed
+1047
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
165 | 171 | | |
166 | 172 | | |
167 | 173 | | |
| |||
0 commit comments