Skip to content

Latest commit

 

History

History
30 lines (15 loc) · 1.48 KB

README.md

File metadata and controls

30 lines (15 loc) · 1.48 KB

ImageToGreyscaleText

A note on PIL: Since PIL is an older package, you have to install pillow, and PIL will be packaged within that. (pip3 install pillow) You don't need to change any of the code though. import PIL should run just fine after you have install the pillow package.

A Quick Description

The main.py file converts inputimage image files into outputimage html files that show the input image in repeated greyscale letters.

Transformation example

will convert to

using these inputs (make sure to move landscape.jpg from readme-images into your inputimages folder)

(.012 is a good starting point, but feel free to lower or increase it if your want more or less letters in your image. The .html file can get large enough to crash search engines though, so there is definitely a limit.)

Inputs

Place an image file into the inputimages folder (it will work without any code modification as long as the inputimages folder is in the same directory as the .py file)

Outputs

All output .html files will be stored in outputimages under the file name and extension you provide.