I created a tool for unpacking .lod files because I got tired of dealing with MMArchive and other .def tools and Python scripts. For now, it unpacks .def files without transparency; for my purposes, I'll create a tool to generate images with a frame around the unit and a shadow. You can reuse it for your own purposes.
https://github.com/Ihromant/heroes3-utils/blob/master/src/test/java/ua/ihromant/sod/LodResourceExtractor.java
Auto-translated