forked from alexandrebini/ruby-imagespec
-
Notifications
You must be signed in to change notification settings - Fork 9
A lightweight module designed to extract the width/height dimensions of various image types. Also supports SWFs
License
dim/ruby-imagespec
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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('https://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
About
A lightweight module designed to extract the width/height dimensions of various image types. Also supports SWFs
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Ruby 100.0%