image2cpp An online version of this tool is live at http://javl.github.io/image2cpp/ image2cpp is a simple tool to convert images into byte…
image2cpp An online version of this tool is live at http://javl.github.io/image2cpp/ image2cpp is a simple tool to convert images into byte…
An online version of this tool is live at http://javl.github.io/image2cpp/
image2cpp is a simple tool to convert images into byte arrays (and vice versa) for use with small (monochrome) displays such as OLEDs on your Arduino or ESP. Alternatively you can also enter a byte array as input to turn it back into an image. This can be useful for debugging to when you want to recover an image from your source code.
Since this is a pure HTML + Javascript tool it works in any browser on Windows, MacOS and Linux. Use the link above for an online version that's ready to go, or download the code and simply open index.html in your browser. All processing is done in your browser, so nothing is uploaded, read or stored on remote servers.
GFXbitmapFont.Did you find this tool useful? Feel free to support my open source software (especially when used commercially):
You can download and view the index.html file locally, or visit the online version at http://javl.github.io/image2cpp/
You can find a simple Arduino example sketch over here in the repository.
I wrote the code with my 128x64 pixel monochrome OLED display in mind, but it should work with most similar displays. You might need to change some export settings; those are explained in the tool.
A simple test suite lives in the tests directory. See tests/ for instructions.
Initial code by javl with aditional code by (in alphabetical order):
The example sketch is based on code by Adafruit. Dithering code from stellar-L3N-etag.
image2cpp is released under GPL v3. This means you can use the project in any way you want (use, adapt, distribute, etc.) as long as you share any changes and link back to this repo. See LICENSE.md for more info.
Please do consider a donation when used commercially. Thank you.
No open issues yet, or sync has not completed.