Conversion from an Image to Hex code

I'm doing a project with OLED 128x64 and I need to display an image of that exact size, I found that with a simple conversion to hex code I can display it but I need an automatic convertor that I send the image and it returns the hex code kinda like an API

this tutorial has a link to a downloadable software to convert images to hex files.I have not tried the software yet so download at your own risk.

I use this Bitmap → Hex tool