Tag Archives: Flame

Reclaiming disk space from TIF files*

Okay. So it’s disk cleanup time. Over the years I’ve accumulated a fair amount of images, not all of them have been saved with compression – which vastly reduces their file size. When I say compression, I mean lossless compression. (think zip files)

In my case I’m looking at TIF and SGI files. Many time Flame operators forget to click the ‘compression’ button when they save out these formats due mostly to ignorance. What they don’t realize is that it’s loss-less compression. I digress.

So let’s reclaim disk space! Here is one stab at it using a bash script. Requires imagemagick. This will recursively descend from the current working directory.

*this code could be modified to deal with SGI’s, or targa (TGA) files. Make sure to check that convert’s -compress option is valid for those types!

#!/bin/bash

tifs=$(mktemp)
utifs=$(mktemp)
utifsizes=$(mktemp)

echo "Finding TIF files... (Please wait) > $tifs"
find . -iname "*.tif" -exec du {} \; > $tifs

echo -n "Disk usage of tif files "
awk 'BEGIN { sum = 0 } {sum = sum + $1} END {print sum " MB"}' $tifs

echo "Finding uncompressed TIF files... (Please wait) > $utifs"
cut -f2- $tifs | while read line ; do
identify -quiet -format "image-compression %C %d/%f" "$line" | grep None >> $utifs
done

echo -n "Number of uncompressed TIF files... "
count=$(wc -l $utifs | cut -d' ' -f1)
echo $count

if [ "$count" -ne "0" ] ; then

echo -n "Computing disk space used by uncompressed TIF files... > $utifsizes"
cut -f2- $tifs | while read line ; do
du -m "$line" >> $utifsizes
done
awk 'BEGIN { sum = 0 } {sum = sum + $1} END {print sum " MB"}' $utifsizes

echo "Compressing TIF files... (Please wait) "
cut -d' ' -f3- $utifs | while read line ; do
echo convert -compress lzw \""$line"\" \""$line"\"
convert -quiet -compress lzw "$line" "$line"
done

fi

My 2011 Visual Effects Demo Reel

I present my 2011 VFX Demo Reel with all new content.
Pinkreel 2011. 113MB. HD720p. 24fps. 3:03. H.264. Help from many. Music by Plaid.
High resolution version of the above picutre.
It’s been a few years since my 2007 demo reel, I hope you enjoy it.

You can find a detailed list of my responsibilities for the various spots on my resume page. Plus I’m happy to discuss ‘how we did it’. That’s the fun part.

This was edited on my Debian Linux 6.0 “squeeze” distribution (64-bit) with Kdenlive. I used Quicktime compressed with JPEG maximum quality for the intermediate codec from original source material. Running on an Intel Core i7 CPU. The playback was pretty amazing. This is why I donate to free and open source software and you should to.

New Job Description

A stressed out squirrel
ONDCP "Tree Service"

Hi so what’s new with me? Well, I quit my post as CG Supervisor at Method NY and I’m going back to being a freelancer. I’ve had a very proud 2.5 years there. Leaving was like breaking up with a dozen people at the same time. I’ve learned a hell of a lot, and I’ve also made some mistakes, but I’ll be better for them next time.

In the short term I’ll be starting my first gig at Mass Market. Also I’ll be cutting an updated reel – featuring the squirrel pictured above. The squirrel, fence and background is entirely computer generated (with Houdini) and wants you to not do drugs.

Update 2010-12-14
This spot has finally been released.
http://adgallery.whitehousedrugpolicy.gov/media/p/402.aspx