Archive for April 21st, 2002

Optimization…

I read this article on Slashdot. I’ve known these things for sometime, but I decided to do some testing on my database of photos, and so I developed this little number:
ls -1 */*/* | \
awk ‘{print “djpeg “$1″ | cjpeg -q 60 >”$1″.2; \
mv “$1″.2 “$1}’

I had to let it run over night, but I have effectively halved the size of all my photos, and thumbs are now 1-2K!

Pretty good.

The script finished running around 1:30pm. PSYCHE!