LB Booster
« Embedded .bmp files »

Welcome Guest. Please Login or Register.
Dec 13th, 2017, 9:52pm


Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
LB Umbrella forum
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Embedded .bmp files  (Read 130 times)
flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx Embedded .bmp files
« Thread started 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
User IP Logged

Roger
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1291
xx Re: Embedded .bmp files
« Reply #1 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.
User IP Logged

flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx Re: Embedded .bmp files
« Reply #2 on: Jun 18th, 2017, 05:31am »

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

Roger
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls