Maze from Image — browser version

Generate a perfect maze whose unique shortest path follows a drawn/thresholded line. Export PNG or compact SVG (single walls). Adjustable wall width, cell size & seed.

Controls

Dark pixels are treated as the desired path (unless you check “Invert”).
 Invert (light path)
Ready.

Preview

Maze

Maze + Solution