GammaSlamma
I’ve just discovered this little app! All you do is drag a png onto it, and it strips all the Gamma information out of the PNG file, which happens to make the colours perfect in Flash, and also takes a lot off the filesize.
I just processed a background image that was 116Kb and it came out as 63Kb!!!
7 Comments so far
I tried the PC equivalent (pngcrush), but i didn’t get the same results. My file only went down a couple of KBs. But i also use the “save for web” option in photoshop. Does that make a different with the PNG gamma?
I haven’t really found any pattern, some pngs compress much better via GammaSlamma, but others seem unaffected in terms of filesize. It is good to know that that colour’s are correct in flash though!
Love the polar clock – a really nice visualisation of time.
I’m putting together a clock myself – v different from yours, but it is going to be built in Flash and I have a question if you don’t mind.
I started out using setInterval(myFunc,1000) as the basis for the ‘ticking seconds’, but it’s quickly become apparent that setInterval is not accurate – it doesn’t call exactly on the second.
I was wondering how you addressed this and what you use to count exact seconds?
Cheers,
Guy
well, you can do it like this:
var mins:String = “00″;
var secs:Number = 0;
var time:String = “00:00″;
onEnterFrame = function () {
var secsNow = new Date().getSeconds();
if (secsNow != lastSec) {
secs++;
if (Number(secs) > 59) {
mins++;
if (Number(mins)
That came out wrong, don’t know why :S
well, just download the .as file from http://www.andreassalino.com/time.as
I think that this approach is much more accurate than the setInterval one.
Try optipng (search for it) after running gammaslamma. Could make the PNG up to 30% smaller…
Nevermind, GammaSlamma seems to be some GUI for PNGCRUSH so it does stuff similar to optipng already.