Factorio 0.17 image to blueprint converter

Converts an image (e.g. a .png file) to a Factorio blueprint string. This is the original page that got me started: https://factorio.tmin10.ru/ The calculation is done locally with javascript and the image sizes are not limited. I tried 1000x1000 and there are no issues with either this converter or Factorio.

The following conversion table for colors is used:

Entity or tile RedGreenBlue
stone-wall 250250250
transport-belt 2502505
fast-transport-belt2502305
laser-turret 25055
refined-concrete 180180180
concrete 160160160
stone-brick 140140140
hazard-refined-concrete200200180
hazard-concrete 180180160
Colors don't need to match 100%. Nearby colors (+-10) will also work.

Input image

Your Browser does not support canvas

Blueprint

Encoded Blueprint

'