LB Booster
General >> General Board >> Embedded .bmp files
http://lbb.conforums.com/index.cgi?board=general&action=display&num=1497732211

Embedded .bmp files
Post by flotulopex on Jun 17th, 2017, 8:43pm

Hi Richard,

I just finished a small program that uses around 25 bmp files that are each around 6MB (1920x1080, 24bit).

I embedded the bmp files in the executable and the exe weights only 722kB (!?) instead of the total 150MB.

What an excellent surprise but...how did you do this?

Roger
Re: Embedded .bmp files
Post by Richard Russell on Jun 17th, 2017, 10:06pm

on Jun 17th, 2017, 8:43pm, flotulopex wrote:
What an excellent surprise but...how did you do this?

The embedded files are compressed using quite an efficient algorithm (not as good as Zip, but close) - it's actually the aPLib compression library which you'll notice is acknowledged in the LBB docs.

Depending on the kind of images they contain, BMP files are often quite easily compressed. If you zip your 25 bitmaps you will no doubt find that they end up considerably smaller than the executable made by LBB.

Richard.
Re: Embedded .bmp files
Post by flotulopex on Jun 18th, 2017, 05:31am

Well, thanks a lot again and one more "bravo" for you and LBB wink