LB Booster
« Embedded .bmp files »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:03am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
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
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Embedded .bmp files  (Read 239 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: 1348
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 »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls