Image2Minecraft
A simple Processing program using PApplet to transform images to Minecraft Pixel Art
Image2Minecraft
Turns any image into Minecraft block art, using the textures of the Minecraft version installed on your machine.
Features
- Version picker: every Minecraft version found in
.minecraft/versionsis listed, newest first, and its block textures are extracted straight from the game jar into a local cache. Both the modern26.2names and the legacy1.21.xones are understood. - Perceptual matching: blocks are picked in the Oklab color space instead of raw RGB, so dark and saturated areas keep their nuances.
- Floyd-Steinberg dithering, toggleable, for a much closer match on gradients and skin tones.
- Palette filters: exclude noisy textures, falling blocks, expensive blocks, unobtainable blocks, light emitting blocks or flammable blocks, to end up with a palette you can actually build with in survival.
- Material list export as text or CSV, with counts in blocks, stacks and shulker boxes.
- Modern interface: dark theme, live previews with zoom, pan and a block grid overlay, drag and drop, clipboard paste and copy, native file dialogs, and settings kept between runs.
- Keyboard shortcuts:
Ctrl+Oopen,Ctrl+Vpaste,Ctrl+Ggenerate,Ctrl+Ssave,Ctrl+Ccopy,Ctrl+Ematerial list,Ffit the view,1zoom to 100%,Gtoggle the block grid.
Running
The app opens on the newest installed version and extracts its textures on first use. MINECRAFT_DIR overrides the game directory when the launcher installs it somewhere else. Caches and preferences live in %APPDATA%/Image2Minecraft.
Command line
Architecture
The UI is split from its renderer: widgets only talk to the Renderer interface and draw with Bitmap images, and ProcessingRenderer is the only class that knows about Processing. Swapping in a faster backend means writing one new implementation of that interface.
coreholds the palette, the generator, version discovery and the desktop integration, none of it depends on a UI toolkit.uiholds the widget layer, the theme and the renderer interface.ui/backendholds the Processing implementation.
Pierre Roy