ImageSpec is a lightweight module designed to extract width/height dimensions from most standard image formats, as well as SWFs.

This is a work in progress. I intend on expanding this to include other details (EXIF, various metadata, etc.) as well.


# From a file in your file system instance ='/path/to/your/file')

# From a URL instance ='')

# From an IO stream file ='/path/to/your/file', 'rb') instance =

instance.width instance.height instance.content_type

Pretty simple, huh?

Copyright © 2008 Brandon Anderson, released under the MIT license

Contributions by Michael Sheakoski and Mike Boone