This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
LICENSE | Tue Feb 17 20:01:51 -0800 2009 | |
| |
README | Sat Feb 28 12:00:14 -0800 2009 | |
| |
Rakefile | Tue Feb 17 20:01:51 -0800 2009 | |
| |
init.rb | Thu Feb 26 14:45:40 -0800 2009 | |
| |
lib/ | Thu Mar 05 01:00:48 -0800 2009 | |
| |
tasks/ | Tue Feb 17 20:01:51 -0800 2009 | |
| |
test/ | Tue Feb 17 20:01:51 -0800 2009 |
README
ImageSpec
=========
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.
Example
=======
# From a file in your file system
instance = ImageSpec.new('/path/to/your/file')
# From a URL
instance = ImageSpec.new('http://example.com/image.png')
# From an IO stream
file = File.new('/path/to/your/file', 'rb')
instance = ImageSpec.new(file)
instance.width
instance.height
instance.content_type
Pretty simple, huh?
Copyright (c) 2008 Brandon Anderson, released under the MIT license
Contributions by Michael Sheakoski and Mike Boone







