Reducing bmp size.

Want to just shoot the breeze? Forum 42 is the place!

Moderator: Moderators

Post Reply
Kurt_
Portablizer
Posts: 5748
Joined: Thu Nov 24, 2005 10:32 am
Steam ID: kurbert
Location: Ontario, Canada
Contact:

Reducing bmp size.

Post by Kurt_ »

I am re-flashing my bios. It has the capability to display a custom image instead of diagnostics. The catch is that it has to be a 16 colour, 640 x 480 bitmap that is under 10kb.

I can't get it under 140kb. I downloaded some software to reduce the size, and it doubled the size. I honestly don't feel like I can reduce it any more.

Any ideas?

Here's the log.

Code: Select all

Prepare v2.04  05/27/98    
(c) Phoenix Technologies Ltd.

SCRIPT FILE: logo.scr
EXECUTION TIMESTAMP: Wed Sep 16 17:59:22 2009


PREPARE/CATENATE Command Parser Ver 2.0  3/11/98
Parsing: 'logo.scr'

     Line:  5  COMPRESS  LZINT			
     Line: 10  LOGO LOGO.BMP -F:10             


PREPARE/CATENATE Command Parser END

Global Compression Mode = LZINT
ERROR: compressed module size for LOGO.MOD > specified ROM footprint
Hey, sup?
marshallh
Moderator
Posts: 2987
Joined: Sat Sep 10, 2005 2:17 pm
360 GamerTag: marshallh
Location: here and there
Contact:

Re: Reducing bmp size.

Post by marshallh »

I think most of them use some kind of LZW compression, which depends on the source image being simple and with few colors.

A simple company logo, yes. A photo isn't going to work at all. Mind posting the source image?
Image
Kurt_
Portablizer
Posts: 5748
Joined: Thu Nov 24, 2005 10:32 am
Steam ID: kurbert
Location: Ontario, Canada
Contact:

Re: Reducing bmp size.

Post by Kurt_ »

I'm working with two possibilities, whichever turns out better. The goal is to add some hilarity to a stolen laptop.

Image
Image
Hey, sup?
gamemasterAS
Senior Member
Posts: 3310
Joined: Thu Nov 24, 2005 10:30 pm
Steam ID: lolz1337face
Location: Ohio
Contact:

Re: Reducing bmp size.

Post by gamemasterAS »

I used to have fbi boot screen and log-in screens. :lol:
.
Grandmasterjimmy
Posts: 207
Joined: Tue May 13, 2008 12:53 pm
PSN Username: PeglegJimmy
Location: PA

Re: Reducing bmp size.

Post by Grandmasterjimmy »

Lowest I can get is 25kb.
Kurt_
Portablizer
Posts: 5748
Joined: Thu Nov 24, 2005 10:32 am
Steam ID: kurbert
Location: Ontario, Canada
Contact:

Re: Reducing bmp size.

Post by Kurt_ »

HOW do you get it smaller? Every bitmap I save is 140kb
Hey, sup?
Grandmasterjimmy
Posts: 207
Joined: Tue May 13, 2008 12:53 pm
PSN Username: PeglegJimmy
Location: PA

Re: Reducing bmp size.

Post by Grandmasterjimmy »

Photoshop, index color, save as 4 bit bitmap.
Kurt_
Portablizer
Posts: 5748
Joined: Thu Nov 24, 2005 10:32 am
Steam ID: kurbert
Location: Ontario, Canada
Contact:

Re: Reducing bmp size.

Post by Kurt_ »

I don't use photoshop.
Hey, sup?
marshallh
Moderator
Posts: 2987
Joined: Sat Sep 10, 2005 2:17 pm
360 GamerTag: marshallh
Location: here and there
Contact:

Re: Reducing bmp size.

Post by marshallh »

You can do that in MSPaint too, BTW. Save As > 16-color
Image
bacteria
Portablizer Extraordinaire
Posts: 3984
Joined: Fri Apr 20, 2007 12:14 am
Location: Hampshire, UK
Contact:

Re: Reducing bmp size.

Post by bacteria »

I got same results; on BMP got 140k, when tried software to reduce size came in at 282k.

Got it 12.2k on jpeg though.
Image
robm
Posts: 276
Joined: Tue Dec 30, 2008 6:05 pm
Location: Reynoldsburg. OH

Re: Reducing bmp size.

Post by robm »

I got 32.4Kb, still working on it though.

Edit: Seems that's the lowest I can get it :( Sorry. That's at 4-bit grayscale. I can get it tiny if you're cool with no color information at all.
Edit2: 28.3, with color.
Kurt_
Portablizer
Posts: 5748
Joined: Thu Nov 24, 2005 10:32 am
Steam ID: kurbert
Location: Ontario, Canada
Contact:

Re: Reducing bmp size.

Post by Kurt_ »

A friend of mine explained bitmap compression to me. Reducing the image size did it, the DEA one came out on top for looking the most official.
Hey, sup?
marshallh
Moderator
Posts: 2987
Joined: Sat Sep 10, 2005 2:17 pm
360 GamerTag: marshallh
Location: here and there
Contact:

Re: Reducing bmp size.

Post by marshallh »

I was gonna say, since circle area increases exponentially with diameter, making it a bit smaller frees up a lot of pixels :)
Image
Post Reply