Hey thanks for the excellent example cmezek!
Two things I noticed though, I think you might need a:
CGColorSpaceRelease(colorSpaceInfo);
In the above example. Also, should:
if (image.imageOrientation == UIImageOrientationUp | image.imageOrientation == UIImageOrientationDown) {
that be a || instead of a |?
Anyway, the code is working great though on my iphone, thanks for posting it.
-Michael Riegger