FreeImage -- is there a lightweight version

BlitzMax Forums/Brucey's Modules/FreeImage -- is there a lightweight version

AdamRedwoods(Posted 2010) [#1]
Is there a lighter weight version of FreeImage for BMax?
Or is there a way to reduce the size of the Bmax FreeImage compile?

Or is the best way to go through the module code and pull out segments I don't need. In other words, if I only want to have the load and save code without the Toolbox functions-- would that create a lighter version?


Brucey(Posted 2010) [#2]
FreeImage comes as-is. Even if it were a DLL, it would still have everything in it.
Your other option would be to build loaders for each and every format yourself.

I don't think the toolbox functions take up that much space actually. You'll find that some of the image handlers are quite large. Remember that it does support MANY formats, which requires a lot of code.

For really light-weight, might I suggest the BRL image loaders for png, bmp, tga and jpg :-)


AdamRedwoods(Posted 2010) [#3]
Thanks Brucey--

I actually Rem'ed out the OpenEXR portion-- which wasn't that difficult-- and shrunk the module by 600kb... seems to work ok as long as I don't make any EXR calls.

I guess I'm more concerned with formats BRL is missing like TIFF, IFF and such.

I also tried to take out MNG which seems to be a large one too, but it was too integrated to the rest of the code.