lol, I was trying to convert some game artwork into the format my flashcart uses
turns out someone on GBAtemp has written a tool for that in 2008 that still works flawlessly
https://gbatemp.net/threads/creating-your-own-thumbnails-for-the-ez-flash-omega-firmware.510210/
now my OpenLara ROM has artwork :D