Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: A whole 39 bytes smaller HA logo! (Read 20151 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

A whole 39 bytes smaller HA logo!

Reply #25
A final limit?
EDIT: Picture removed
2343 bytes, losslessly of course

A whole 39 bytes smaller HA logo!

Reply #26
Ahhh, okay I get it.  I do know what sporadically means (I majored in English and I teach first year English), but sporadiciously threw me off.    Thanks--everyone--for clearing that up.


[back on topic]Is the few amount of bytes in question really going to matter to anyone?[/back on topic] 


Later.
"Did you just say he contacts you through a bird? Did I just hear you say that?" Sonny Valerio (Cliff Gorman). Ghost Dog: The Way of the Samurai.


A whole 39 bytes smaller HA logo!

Reply #28
Crazy.... all this discussion over a few bytes... The world of audio compression must be really dead 

Regards

AgentMil
-=MusePack... Living Audio Compression=-

Honda - The Power of Dreams

A whole 39 bytes smaller HA logo!

Reply #29
Quote
A final limit?

What did you use to get it down to this?

I ran advpng, pngrewrite, pngout, pngcrush and optipng on it to get it down to what I did...
And you did a lot better.

A whole 39 bytes smaller HA logo!

Reply #30
Quote
A final limit?


Your version is not lossless! Check the background color for instance.

A whole 39 bytes smaller HA logo!

Reply #31
A new one made from my vector version... But the small text is not 100% the same... Can't make it right...

3.101 bytes

A whole 39 bytes smaller HA logo!

Reply #32
In my experience, changed colours like this are down to the pallete reduction algorithm used to create the image. I haven't done this in a while, but if I remember right, 'optimized octree' seems to keep colours better (I think that was an option in photoshop..). You can always manually alter the pallete to achieve the correct colours. 

A whole 39 bytes smaller HA logo!

Reply #33
Ok, I've now uploaded at least 6 times different versions which are few bytes smaller or something..
Somebody make THE final version already... 
Juha Laaksonheimo

A whole 39 bytes smaller HA logo!

Reply #34
Yeah, this is getting silly!

Here's my contribution

[ ((.)) hydrogenaudio                                                  ]
[                  the audio technology enthusiast's resource ]

Smaller than ALL of yours!!!!111

Ruairi
rc55.com - nothing going on

A whole 39 bytes smaller HA logo!

Reply #35
Quote
Ok, I've now uploaded at least 6 times different versions which are few bytes smaller or something..
Somebody make THE final version already... 

I doubt the original can get smaller than mine. Unless someone tweak the settings on some optimizer.
Till I get a good vector version with correct "small text" that should be the final.


rc55: you never were a perfectionist, though we always love rc55 style contributions...

A whole 39 bytes smaller HA logo!

Reply #36
rc55 could you at least use a smaller font size for "[ the audio technology enthusiast's resource ]"?

A whole 39 bytes smaller HA logo!

Reply #37
Quote
What did you use to get it down to this?
I ran advpng, pngrewrite, pngout, pngcrush and optipng on it to get it down to what I did...
And you did a lot better.

I'm using the same tools as you, most often I get the best results with pngout, try tweaking with the /f and /b option.

Quote
Your version is not lossless! Check the background color for instance.

Hmm, strage stuff. Anyway, the current logo changed, and the smallest size I can get with it is 3000 bytes...

A whole 39 bytes smaller HA logo!

Reply #38

A whole 39 bytes smaller HA logo!

Reply #39
Quote

with which parameters did you run those tools? when I run them they can't optimize it any more.

A whole 39 bytes smaller HA logo!

Reply #40
Quote

Background color is once again different

-Eugene
The  greatest  programming  project of all took six days;  on the seventh  day  the  programmer  rested.  We've been trying to debug the !@#$%&* thing ever since. Moral: design before you implement.

A whole 39 bytes smaller HA logo!

Reply #41
Quote
Quote

Background color is once again different

-Eugene

huh no, it's not, plain white (255,255,255)
Just checked with PSP
And these 2 tools are loseless, unless it's a gamma issue...

Jan S: Default ones, perhaps i have newer versions?
PNGOUT (Sep 25 2003)
PNGRewrite 1.2.1

Edit: Shows up fine in IE and Opera, must be a problem on your side

A whole 39 bytes smaller HA logo!

Reply #42
Quote
Quote
Quote

Background color is once again different

-Eugene

huh no, it's not, plain white (255,255,255)
Just checked with PSP
And these 2 tools are loseless, unless it's a gamma issue...

Jan S: Default ones, perhaps i have newer versions?
PNGOUT (Sep 25 2003)
PNGRewrite 1.2.1

Edit: Shows up fine in IE and Opera, must be a problem on your side 

Heh, really. Seems that it's forum background that's not #FFFFFF, but #FFF (and IE makes it #F0F0F0), so it's not completely white

-Eugene
The  greatest  programming  project of all took six days;  on the seventh  day  the  programmer  rested.  We've been trying to debug the !@#$%&* thing ever since. Moral: design before you implement.

A whole 39 bytes smaller HA logo!

Reply #43
Forum background is #FFFFFF.
"Quote background" is not.

A whole 39 bytes smaller HA logo!

Reply #44
Quote
Forum background is #FFFFFF.
"Quote background" is not.

Hmm...
Code: [Select]
BODY { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; color: #000; margin:0px;padding:0px;background-color:#FFF; text-align:center }


-Eugene
The  greatest  programming  project of all took six days;  on the seventh  day  the  programmer  rested.  We've been trying to debug the !@#$%&* thing ever since. Moral: design before you implement.

A whole 39 bytes smaller HA logo!

Reply #45
here it is displayed as (255,255,255) in both mozilla firebird and IE.
Checked with PS.

A whole 39 bytes smaller HA logo!

Reply #46
lol, now it's 2bytes smaller (2998)
These programs are quite weird...

A whole 39 bytes smaller HA logo!

Reply #47
Hi,

I found this thread through a web search for PNG compression. I thought I would give a shot at reducing the HA logo size.

Took the HA logo off the top of this webpage. Size: 3064 bytes.

Using just crushers, I got it down to only about 3001 bytes, similar to everyone else. I used Megaopt, then PNG Gauntlet.

With manual colour reduction, the smallest filesize I managed to get the logo down to was 2830 bytes.

<<< I don't see a way to upload my image with this post ! >>>

The colours were reduced down to 39 colours from 58 in the original. Visually the colour-reduced logo is still identical to the original. You'd have a tough time finding changed pixels when zooming in on the logo in Photoshop.

After the colour-reduction (I used Web Image Guru for that), I ran the image through my favourite crusher: Megaopt (which I found on this very forum).

After Megaopt, I ran the image through PNG Gauntlet which reduced it furthur. PNG Gauntlet almost always reduces another 2-3%, probably because it uses PNG Rewrite to re-sort the palette. But I also read that Gauntlet uses an older version of PNG Out whereas Megaopt uses a newer version... apparently the older PNG Out still compresses better.

The amount of colours could actually go down by another 10 and you wouldn't notice a difference visually on a webpage.

At this point, if you want more reduction... I would crop the white space off the edges of the logo. Then when you put it back into your website code, put in the equivalent empty space around the logo. You can do this multiple ways. <IMG> tags are supposed to have a padding control. If not, CSS code should have that. Then there's the old stand-by... blank 1-pixel GIF's surround the logo (but then the 100 bytes you gained in the cropping would be introduced again using blank GIF's), or you can be tricky with table cells.

Is all this effort crazy? Probably. Myself, I don't think so... because I work for a mobile game porting company and 10 bytes here and there is serious business! =) Some apps we work on... are crazy... we have to reduce a game package (JAR file) from like 130kb to 64kb to fit on some crappy cellphones... and the programmers were asking me "GIMME 200 BYTES MORE MAN". It fell down to a matter of 5 pixels changing colour to get the game to fit on the phone memory requirements. This is what makes my job fun though, I love it.

A whole 39 bytes smaller HA logo!

Reply #48
Hahahaha now I know why games on mobiles use PNG... thanks for that. I always wondered why they always had PNG instead of JPGs GIFs etc.
-=MusePack... Living Audio Compression=-

Honda - The Power of Dreams

A whole 39 bytes smaller HA logo!

Reply #49
Quote
Hahahaha now I know why games on mobiles use PNG... thanks for that. I always wondered why they always had PNG instead of JPGs GIFs etc.
[a href="index.php?act=findpost&pid=267006"][{POST_SNAPBACK}][/a]


Yea, haha.

PNG format is cool though. It can be indexed, RGB, or grayscale. The indexed palette bit-depth can be 1bit to 8bit. Color depth can be from 1bit to 64bit (or something like that). There's also the possibility of animation with the specification (.MNG format).

What I like most is the control over data chunks (TweakPNG is a great program) in the PNG file. You can blow away parts of the PNG, or add them. There's so many chunk types that give you control over PNG features. Like pixel aspect ratio, brightness (for consistency across different displays), as well as text comments.

Tweaking a PNG out usually gets filesize below what GIF and JPG can do.