Package: pixelpainter
PIXELPAINTEROk, first of all, this script just gets all the pixels from the given image, builds an HTML table, and inserts each pixel obtained from the image into the table cells. So...with this in mind, from now on we will call the table cells:Pixels.For now this script is only executable from Windows.IMPORTANT: The larger the image to be processed, the more pixels will be inserted in the HTML table, therefore it will take longer to load the file in the browser. Also handle the pixel size carefully.Install:pip install pixelpainterUsage:pixelpainter -hin cmd shows:usage: pixelpainter [-h] -i IMAGE [-ps PIXELSIZE] [-f FOLDER] [-m {save,copy}]

Convert images to HTML.

optional arguments:
  -h, --help            show this help message and exit
  -i IMAGE, --image IMAGE
                        Absolute path of the image to be processed.
  -ps PIXELSIZE, --pixelsize PIXELSIZE
                        Pixel size.
  -f FOLDER, --folder FOLDER
                        Output folder of the HTML file (in case of using -save mode in --mode argument) The default
                        save folder is the desktop.
  -m {save,copy}, --mode {save,copy}
                        Copy the generated code to clipboard (copy) or generate a HTML file (save).The onlyrequiredargument is-i, the rest are optional and have default values:ArgumentDefault value-ps2-folder(Your Desktop folder)-modesaveComparison:16x16 imageOutput HTML TABLE (Screenshot with zoom)Output HTML Code (Beautified)<style>#tabla{border-collapse:collapse;}#tablatd,th{padding:0;margin:0;width:5;height:5;}</style><tableid='tabla'><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#c1984a5c'></td><tdstyle='background-color:#c1984ac1'></td><tdstyle='background-color:#c1984aef'></td><tdstyle='background-color:#c1984aff'></td><tdstyle='background-color:#c1984aff'></td><tdstyle='background-color:#c1984aef'></td><tdstyle='background-color:#c1984ac1'></td><tdstyle='background-color:#c1984a5c'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#be954aa5'></td><tdstyle='background-color:#c7a25df9'></td><tdstyle='background-color:#e3ce9eff'></td><tdstyle='background-color:#f7eed2ff'></td><tdstyle='background-color:#fef9e7ff'></td><tdstyle='background-color:#fef9e7ff'></td><tdstyle='background-color:#f7eed2ff'></td><tdstyle='background-color:#e3ce9fff'></td><tdstyle='background-color:#c7a25df9'></td><tdstyle='background-color:#bf954aa5'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#bb924aa5'></td><tdstyle='background-color:#d7bd88ff'></td><tdstyle='background-color:#fbf4ddff'></td><tdstyle='background-color:#fff9deff'></td><tdstyle='background-color:#fff8d8ff'></td><tdstyle='background-color:#fff7d5ff'></td><tdstyle='background-color:#fff7d5ff'></td><tdstyle='background-color:#fff8d8ff'></td><tdstyle='background-color:#fff9deff'></td><tdstyle='background-color:#fbf4ddff'></td><tdstyle='background-color:#d7bd88ff'></td><tdstyle='background-color:#bb924aa5'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#b68f4a5c'></td><tdstyle='background-color:#c2a060f9'></td><tdstyle='background-color:#fbf3d6ff'></td><tdstyle='background-color:#fff6d2ff'></td><tdstyle='background-color:#ddd0a7ff'></td><tdstyle='background-color:#ddd0a7ff'></td><tdstyle='background-color:#fff6d1ff'></td><tdstyle='background-color:#fff6d2ff'></td><tdstyle='background-color:#ddd0a7ff'></td><tdstyle='background-color:#ddd0a7ff'></td><tdstyle='background-color:#fff6d2ff'></td><tdstyle='background-color:#fbf3d7ff'></td><tdstyle='background-color:#c29f60f9'></td><tdstyle='background-color:#b68f4a5c'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#b18a4ac1'></td><tdstyle='background-color:#deca9cff'></td><tdstyle='background-color:#fff6ccff'></td><tdstyle='background-color:#fff6ccff'></td><tdstyle='background-color:#7a5b2dff'></td><tdstyle='background-color:#7a5b2dff'></td><tdstyle='background-color:#fff6ccff'></td><tdstyle='background-color:#fff6ccff'></td><tdstyle='background-color:#7a5b2dff'></td><tdstyle='background-color:#7a5b2dff'></td><tdstyle='background-color:#fff6ccff'></td><tdstyle='background-color:#fff6cdff'></td><tdstyle='background-color:#dec99cff'></td><tdstyle='background-color:#b18b4ac1'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#ab854aef'></td><tdstyle='background-color:#f5e8c1ff'></td><tdstyle='background-color:#fff4c6ff'></td><tdstyle='background-color:#fff4c6ff'></td><tdstyle='background-color:#7a5b2dff'></td><tdstyle='background-color:#7a5b2dff'></td><tdstyle='background-color:#fff4c6ff'></td><tdstyle='background-color:#fff4c6ff'></td><tdstyle='background-color:#7a5b2dff'></td><tdstyle='background-color:#7a5b2dff'></td><tdstyle='background-color:#fff4c6ff'></td><tdstyle='background-color:#fff4c6ff'></td><tdstyle='background-color:#f5e8c1ff'></td><tdstyle='background-color:#ab864aef'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#a5814aff'></td><tdstyle='background-color:#fef3c2ff'></td><tdstyle='background-color:#fff3bfff'></td><tdstyle='background-color:#fff3c0ff'></td><tdstyle='background-color:#aa9667ff'></td><tdstyle='background-color:#aa9667ff'></td><tdstyle='background-color:#fff3c0ff'></td><tdstyle='background-color:#fff3c0ff'></td><tdstyle='background-color:#aa9667ff'></td><tdstyle='background-color:#aa9667ff'></td><tdstyle='background-color:#fff3c0ff'></td><tdstyle='background-color:#fff3c0ff'></td><tdstyle='background-color:#fef3c2ff'></td><tdstyle='background-color:#a5814aff'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#9f7d4aff'></td><tdstyle='background-color:#fef0b6ff'></td><tdstyle='background-color:#fff1b8ff'></td><tdstyle='background-color:#fceeb6ff'></td><tdstyle='background-color:#fff1b8ff'></td><tdstyle='background-color:#fff1b8ff'></td><tdstyle='background-color:#fff2b8ff'></td><tdstyle='background-color:#fff1b9ff'></td><tdstyle='background-color:#fff2b8ff'></td><tdstyle='background-color:#fff1b8ff'></td><tdstyle='background-color:#fcefb5ff'></td><tdstyle='background-color:#fff1b9ff'></td><tdstyle='background-color:#fef0b6ff'></td><tdstyle='background-color:#9f7c4aff'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#9a784aef'></td><tdstyle='background-color:#f5e3a2ff'></td><tdstyle='background-color:#fff0b1ff'></td><tdstyle='background-color:#d0b97aff'></td><tdstyle='background-color:#ffefb1ff'></td><tdstyle='background-color:#fff0b1ff'></td><tdstyle='background-color:#fff0b1ff'></td><tdstyle='background-color:#fff0b0ff'></td><tdstyle='background-color:#ffefb1ff'></td><tdstyle='background-color:#ffefb1ff'></td><tdstyle='background-color:#d0b97bff'></td><tdstyle='background-color:#fff0b1ff'></td><tdstyle='background-color:#f5e3a2ff'></td><tdstyle='background-color:#99784aef'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#93734ac1'></td><tdstyle='background-color:#dcc686ff'></td><tdstyle='background-color:#ffefa8ff'></td><tdstyle='background-color:#cbb170ff'></td><tdstyle='background-color:#b79b5aff'></td><tdstyle='background-color:#ddc784ff'></td><tdstyle='background-color:#f5e49fff'></td><tdstyle='background-color:#f5e49eff'></td><tdstyle='background-color:#ddc784ff'></td><tdstyle='background-color:#b79a5aff'></td><tdstyle='background-color:#cbb270ff'></td><tdstyle='background-color:#ffeea9ff'></td><tdstyle='background-color:#dcc586ff'></td><tdstyle='background-color:#93734ac1'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#8e6e4a5c'></td><tdstyle='background-color:#a48759f9'></td><tdstyle='background-color:#fbe698ff'></td><tdstyle='background-color:#fbe79eff'></td><tdstyle='background-color:#d1b873ff'></td><tdstyle='background-color:#ab8c4bff'></td><tdstyle='background-color:#937032ff'></td><tdstyle='background-color:#937032ff'></td><tdstyle='background-color:#ab8c4bff'></td><tdstyle='background-color:#d1b873ff'></td><tdstyle='background-color:#fbe79eff'></td><tdstyle='background-color:#fbe698ff'></td><tdstyle='background-color:#a4875af9'></td><tdstyle='background-color:#8e6e4a5c'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#896a4aa5'></td><tdstyle='background-color:#c8af71ff'></td><tdstyle='background-color:#fbe58fff'></td><tdstyle='background-color:#ffea97ff'></td><tdstyle='background-color:#ffeb9bff'></td><tdstyle='background-color:#ffeb9dff'></td><tdstyle='background-color:#ffeb9dff'></td><tdstyle='background-color:#ffeb9bff'></td><tdstyle='background-color:#ffea97ff'></td><tdstyle='background-color:#fbe58fff'></td><tdstyle='background-color:#c8ae71ff'></td><tdstyle='background-color:#896b4aa5'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#84674aa5'></td><tdstyle='background-color:#9c8057f9'></td><tdstyle='background-color:#d9c077ff'></td><tdstyle='background-color:#f7df86ff'></td><tdstyle='background-color:#fee789ff'></td><tdstyle='background-color:#fee789ff'></td><tdstyle='background-color:#f7df86ff'></td><tdstyle='background-color:#d9c177ff'></td><tdstyle='background-color:#9c8058f9'></td><tdstyle='background-color:#84674aa5'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#81644a5c'></td><tdstyle='background-color:#81644ac1'></td><tdstyle='background-color:#81644aef'></td><tdstyle='background-color:#81644aff'></td><tdstyle='background-color:#80644aff'></td><tdstyle='background-color:#81644aef'></td><tdstyle='background-color:#81644ac1'></td><tdstyle='background-color:#80654a5c'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td></tr><tr><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td><tdstyle='background-color:#00000000'></td></tr></table>