- Javascript
- HTML
- CSS
- Browser, such as Chrome or Firefox
- Python (or other Simple Server to serve up image files from local machine to get past CORS)
-
git clone the repo by typing
git clone https://github.com/parisDreyer/image-to-html.git -
then
CDinto the root directory of your project -
then type in terminal
python -m SimpleHTTPServeror similar server on localhost -
the project will be available on some port accessible through your browser (probably
localhost:8000) -
Be sure to enable the ability to
open windowson your browser for the Demo page- If you do not do so, you will be prompted to do so after clicking the
Analyze Imagebutton. Click theAnalyze ImageButton one more time after enabling open windows
- If you do not do so, you will be prompted to do so after clicking the
-
For a demo of the features, click the
Analyze Imagebutton at the bottom of the Live Demo
- Input the url to the
Image File Pathinput box above theAnalyze Image Button - Update the
Pivot SizeandColor Variability-- the smaller the Pivot Size the slower the calculations are. The larger the color variability the slower the calculations. - Uses a pivot algorithm in concert with a seed-fill algorithm and random sampling to generate statistically likely color groups from an array of pixels.
- After generating color groups CSS and HTML files are generated using the relative height, width and position of each color region

