Image to Byte array

Use this online image to Byte array tool for converting (monochromatic) bitmaps to data arrays (C++ style). You can use these arrays with programs for embedded systems with microcontrollers to output graphics on monochromatic LCD's or thermal printers (like Arduino with the Adafruit mini printer, which I needed this for). Probably the output also works for graphics monochromatic LCD displays like T6963C, KS0108, SED1335 etc. but haven't tested this yet.

This tool was meant as a quick online version of LCD Assistant, which is Win only. It creates files for use with a C compiler: for AVR, ARM, PIC, 8051 and ohter microcontrollers. You can use it directly with Arduino (tested), or probably any other design environment based on C compiler (not tested).


→ Image will be auto-converted to monochrome
→ Some LCD's & printers require image width to be a multiple of 8 pixels

How to

To convert an image from bitmap file (.jpg/.png/.gif, RGB/Grayscale) to a data array, simply upload it and hit 'Convert'.

This tool uses 8 pixels per byte and will try to auto-convert your image to black & white. It seems to have some problems with images containing indexed colors, so use RGB/Grayscale. Also; I got the best results with the Adafruit printer by using images with a width of a multiple of 8 (eg. 384 pixels wide).


Link to this page: “Image to Byte array”

You can link to this tool using this HTML code. Simply copy and paste it into your page:

<a href="http://manytools.org/hacker-tools/image-to-byte-array/">Image to C++ Byte array (for Arduino & thermal printer)</a>

If you have any problems using this Image to Byte array, please contact me.


Updates

May 28, 2013

apple touch icon tool

iOS touch icon generator

I've just added a new apple-touch-icon generator; download your icons as .zip

May 21, 2013

Outage

Due to a big outage in the datacenter (defective 400 Watt fuse), Manytools has been unreachable for a few hours. All systems are back up and running now, let's hope it stays that way! If you notice any irregularities, please let me know through the contact form. Thanks!

May 6, 2013

Updates to the site! Lots of small improvements!

This week I'll be rolling out some updates to the site. I've updated its code, fixed some bugs & added a whole new 'Finance' section by popular request. Stay tuned!

June 21, 2012

cssgradient

CSS3 gradient generator in all colors & 360°

Another nice one that's been in the making; CSS3 gradient tool. Generate cross browser 360° gradient code.

May 21, 2012

facebook icons

Updated: ❀ ✿ Facebook / Twitter icons ❁ ✾

Stand out; use special characters in your tweets!