Some of us MATLAB dorks decided to try and figure out how to automatically format a picture to upload to the knitting tool. After balpha gave us a hint, we realized that much of what we were doing was pointless. It turns out that you can upload any picture as long as it is a given size: 442 pixels high by 1190 pixels wide. The knitting tool will do all of the resampling and color quantizing for you.
Regardless, I threw together what I had been working on and put it up on GitHub for anyone interested. knitwit
can pretty closely recreate the results of the knitting tool, with a couple extra options. Given an image like this:
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/ghKpW.jpg)
It will automatically resize, pad, and recolor the image, adding the knit pattern:
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/xRVbd.png)
But you can also turn on a background filling option to get rid of all that white:
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/zrirx.png)
Works on me too:
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/O84Ga.png)
And here's balpha:
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/Cq139.png)
Hmmm... I wonder what someone could do with a utility that can quickly and easily generate a whole bunch of knitted images...
![Never gonna give you up Stack Overflow!](https://cdn.statically.io/img/i.sstatic.net/rTqyY.gif)
You've been knit-rolled!
If only sweaters could be animated.