Apparat is now available using the Scala 2.8-RC2 build. You can find appropriate downloads now on Google Code by searching for the Scala version of your choice. 7z compression on OS X should work now as well.
Search
Twitter Updates
Tags
8bitboy
actionscript
adobe
alchemy
apparat
as3
as3c
as3doc
as3v
asc
audiotool
bytecode
c++
demo
dynamic audio
eclipse
fdt
ffk06
fitc 2008
Flash
fotb
hobnox
hobnox audiotool
hydra
imageprocessing
inline
java
jitb
jooce
jvm
make some noise
midi
oldschool
opensource
optimization
pbdt
pixelbender
popforge
pv3d
ralph hauwert
scala
swf
taas
tdsi
wiiflash
Is 7z compression installed by default on OS X or do I need to download an app for that?
You will need 7z which you can download from http://www.7-zip.org
Thanks Joa, works great on Snow Leopard 10.6.3 ;)
I tested reducer with p7zip 9.04 on six production SWFs that had been created and optimized carefully and the gains were between 5% and 8%, which is pretty fantastic.
Thanks Joa,
can you give a brief explanation of the two options -q and -d ?
I´m trying to squeeze banners with apparat.
“-q” is the quality of the JPEG compression. 1.0 is equal to 100%, 0.5 is equal to 50%. You can ignore “-d” completely for the moment. So if you want to get good compression you could try something like “-q 0.85″.
I’m getting NoSuchMethodError: scala.collection.immutable.Range.foreach etc…
I have scala 2.8RC2 installed and have confirmed the version, any ideas?
You downloaded the latest zip? And the scala version on your path is 2.8 RC2?
Yes, correct.
I have verified both of these conditions.
scala -version
returns 2.8.0.RC2
I have removed all of my apparat files except for the most recent ones.
Cool stuff. It removed 304 bytes from my 2355 byte file which is very good thing :)
To get it work on my snow leopard, this is what I did:
1. Downloaded the Unix, Mac OS X, Cygwin scala-2.8.0.RC2.tgz (md5) 18.7 MB from http://www.scala-lang.org/downloads and decompressed it into xxx folder.
2. download the apparat.zip from http://code.google.com/p/apparat/downloads/list?q=label:scala-2.8.0.RC2 and decompressed it to /scala/bin/
3. copy+pasted my swf to that same scala/bin/ folder (m.swf)
4. downloaded the 7zX app at http://sixtyfive.xmghosting.com/products/7zx/ and dragged the app to Applications folder.
5. opened Terminal and went to that scala/bin/ folder and typed ./scala -cp apparat.jar apparat.tools.reducer.Reducer -Dapparat.7z.path=/Applications/7zX.app/Contents/Resources/7za -i m.swf -o mout.swf
I’m not quite sure if this is the appropriate way, but I must have done something right since my swf is now few bits smaller :)
Thanks Joa, but it was working with RC3 not RC2.
I was getting NoSuchMethodError with 2.8.0.RC2.
Then, I switched on to RC3 version since it was mentioned on the apparat download page. With that Reducer was working.
Well, it is a shame how GoogleCode handles files. I made an update for RC3.
Thanks Joa, this is really perfect…
It all works now on my mac + Apparat + RC3 + 7za & with the small swf’s.
Cool. In fact 7z support should work now out of the box on Linux and OS X if 7za is available on your path. No need to speficy that.