Reducing bmp size.

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

Moderator:Moderators

Post Reply
User avatar
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_ » Wed Sep 16, 2009 3:58 pm

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?

User avatar
marshallh
Moderator
Posts:2986
Joined:Sat Sep 10, 2005 2:17 pm
360 GamerTag:marshallh
Location:here and there
Contact:

Re: Reducing bmp size.

Post by marshallh » Wed Sep 16, 2009 4:27 pm

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

User avatar
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_ » Wed Sep 16, 2009 4:47 pm

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?

User avatar
gamemasterAS
Senior Member
Posts:3309
Joined:Thu Nov 24, 2005 10:30 pm
Steam ID:lolz1337face
Location:Ohio
Contact:

Re: Reducing bmp size.

Post by gamemasterAS » Wed Sep 16, 2009 5:14 pm

I used to have fbi boot screen and log-in screens. :lol:
.

User avatar
Grandmasterjimmy
Posts:207
Joined:Tue May 13, 2008 12:53 pm
PSN Username:PeglegJimmy
Location:PA

Re: Reducing bmp size.

Post by Grandmasterjimmy » Wed Sep 16, 2009 5:20 pm

Lowest I can get is 25kb.

User avatar
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_ » Wed Sep 16, 2009 5:27 pm

HOW do you get it smaller? Every bitmap I save is 140kb
Hey, sup?

User avatar
Grandmasterjimmy
Posts:207
Joined:Tue May 13, 2008 12:53 pm
PSN Username:PeglegJimmy
Location:PA

Re: Reducing bmp size.

Post by Grandmasterjimmy » Wed Sep 16, 2009 5:30 pm

Photoshop, index color, save as 4 bit bitmap.

User avatar
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_ » Wed Sep 16, 2009 5:57 pm

I don't use photoshop.
Hey, sup?

User avatar
marshallh
Moderator
Posts:2986
Joined:Sat Sep 10, 2005 2:17 pm
360 GamerTag:marshallh
Location:here and there
Contact:

Re: Reducing bmp size.

Post by marshallh » Wed Sep 16, 2009 10:00 pm

You can do that in MSPaint too, BTW. Save As > 16-color
Image

User avatar
bacteria
Portablizer Extraordinaire
Posts:3984
Joined:Fri Apr 20, 2007 12:14 am
Location:Hampshire, UK
Contact:

Re: Reducing bmp size.

Post by bacteria » Thu Sep 17, 2009 8:07 am

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

User avatar
robm
Posts:276
Joined:Tue Dec 30, 2008 6:05 pm
Location:Reynoldsburg. OH

Re: Reducing bmp size.

Post by robm » Thu Sep 17, 2009 6:50 pm

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.

User avatar
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_ » Thu Sep 17, 2009 8:46 pm

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?

User avatar
marshallh
Moderator
Posts:2986
Joined:Sat Sep 10, 2005 2:17 pm
360 GamerTag:marshallh
Location:here and there
Contact:

Re: Reducing bmp size.

Post by marshallh » Fri Sep 18, 2009 6:47 am

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