Tuesday, June 22, 2010

Handy Camera-To-Web Shell Script

This code takes pics from your camera that have been dumped to your hard drive, but not reformatted for the Web in terms of pixels or dpi, resizes them, re-dpis them, and uploads them to Amazon S3. Note that the size is pretty damn arbitrary.

convert is the ImageMagick command-line utility; amazon ships with my utility_belt gem.