For my ongoing archiving efforts, I'd like to be able to automatically extract and convert icons from exe files.
7zip can extract the files out of the
.rsrc/ICON resource, but what I end up with are several files that the linux
file utility identified as DIB
(Device Independent Bitmap
) files.
ImageMagick has an decoder for DIB, but it doesn't work with these files. What I assume is that these are 2-bit DIB files, just like .2bp files are technically bmp files with a nonstandard 2-bit depth, these are probably just DIB files with a 2-bit depth that no software can really handle.
So the question is, does anyone have an easy way to convert these into other formats? I don't fancy writing yet another decoder
