-1

I would like to display 65k color animated gifs on my oled. I'm using the adafruit library for https://learn.adafruit.com/096-mini-color-oled Now I need to convert a significant number of images to hex arrays. I found a couple of tools that can deal with monochrome images and I found this: https://www.digole.com/tools/PicturetoC_Hex_converter.php which might work for individual images, but is impractical for batch processing. I also found this, but it appears to also be intended for individual images and doesn't simply work in wine. So isn't there some linux commandline magic to do that?

3
  • 1
    You could have a look at ImageMagick. I think you want to export the image as RGB565 format. This will give you raw bytes. So you can use, for example, xxd to convert this to hex. Not sure what you mean with hex array. – Gerben Feb 6 at 17:08
  • your question is not about the arduino, so it does not belong here .... it may be a better fit at softwarerecs.stackexchange.com – jsotola Feb 6 at 20:09
  • @jsotola "Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino." - my question is about how to convert graphics to an arduino compatible format to use in programming it. IMO it's covered under questions regarding "software that is compatible with Arduino". WIth that being said, I already got my answer. – Andreas Hartmann Feb 9 at 7:29
-1

I found this plugin to be satisfactory: https://khalim19.github.io/gimp-plugin-export-layers/ It's not a single elegant command, but is quite fast and maybe can be optimized with some scripting.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.