-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. Commented Feb 6, 2021 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 Commented Feb 6, 2021 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. Commented Feb 9, 2021 at 7:29

1 Answer 1

-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 and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.