Skip to content
JacobDChamberlainPublic

About

Turn any photo into Minecraft block art, with a build legend. Runs entirely in the browser.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Craftify

Turn any photo into Minecraft block art — right in your browser — with a build legend telling you exactly how many of each block you'd need to build it.

Upload an image and Craftify downsamples it into a block grid, matches each cell's average color to the nearest real Minecraft block (in perceptual CIE-Lab color space), renders it as chunky shaded tiles, and tallies the blocks.

Everything runs client-side. Nothing is uploaded. Not affiliated with Mojang or Minecraft.

Features

  • Granularity slider (16–200 blocks wide) — chunky to detailed
  • Palettes: Concrete, Wool, Terracotta, or Full (~79 blocks incl. stones, planks, ores)
  • Build legend sorted by count, with swatches and totals
  • Grid lines and block shading toggles
  • Export the art as a PNG or the block tally as a build list (.txt)

Run locally

It uses ES modules, so it needs to be served over HTTP (not opened as a file://):

python3 -m http.server 8000
# then open http://localhost:8000

Deploy (Render static site)

This is a plain static site — no build step. On Render:

  • New → Static Site, connect this repo, and set:
    • Build Command: (leave empty)
    • Publish Directory: .

Or use New → Blueprint and Render will read render.yaml automatically.

Project structure

index.html
css/styles.css
js/main.js                    UI orchestration + legend rendering
js/craftifyRenderer.js        core engine (downsample → match → paint → tally)
js/blocks.js                  block palette data (avg colors per block)
js/color.js                   sRGB→Lab conversion + nearest-block matcher
js/exporters/pngExporter.js   PNG + build-list export

About

Turn any photo into Minecraft block art, with a build legend. Runs entirely in the browser.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages