Skip to content

Converts images to a downscaled B/W version, where every pixel is replaced by a dice of the same brightness.

License

Notifications You must be signed in to change notification settings

Simon-Hostettler/DiceImageGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This python file converts an image to a downscaled black and white representation, where each pixel gets replaced by a die-face closest to its darkness. It asks for an image input and saves the converted image as "DiceImage.jpg" in the same folder as the .py file. It also outputs a textfile "DiceArrangement.txt" with the order the dice should be placed in, in case you want to rebuild your image in real life.

Required external modules: numpy, Pillow

Example: Input Image Output Image

About

Converts images to a downscaled B/W version, where every pixel is replaced by a dice of the same brightness.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages