Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattheworiordan/imagesize
measure image size(GIF, PNG, JPEG ,,, etc)
https://github.com/mattheworiordan/imagesize
Last synced: 3 months ago
JSON representation
measure image size(GIF, PNG, JPEG ,,, etc)
- Host: GitHub
- URL: https://github.com/mattheworiordan/imagesize
- Owner: mattheworiordan
- Created: 2010-09-02T08:08:00.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-09-02T09:43:00.000Z (over 14 years ago)
- Last Synced: 2024-04-13T07:29:44.251Z (9 months ago)
- Language: Ruby
- Homepage: http://imagesize.rubyforge.org/
- Size: 164 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
= image_size -- measure image size(GIF, PNG, JPEG ,,, etc)
measure image (GIF, PNG, JPEG ,,, etc) size code by Pure Ruby
["PSD", "XPM", "TIFF", "XBM", "PGM", "PBM", "PPM", "BMP", "JPEG", "PNG", "GIF", "SWF"]== Download
The latest version of image_size can be found at
* http://rubyforge.org/frs/?group_id=3460
== Installation
=== Normal Installation
You can install image_size with the following command.
% ruby setup.rb
from its distribution directory.
=== GEM Installation
Download and install image_size with the following.
gem install imagesize
== image_size References
* image_size Project Page: http://rubyforge.org/projects/imagesize
* image_size API Documents: http://imagesize.rubyforge.org== Simple Example
ruby "rubygems" # you use rubygems
ruby "image_size"
ruby "open-uri"
open("http://www.rubycgi.org/image/ruby_gtk_book_title.jpg", "rb") do |fh|
p ImageSize.new(fh.read).get_size
end== Licence
This code is free to use under the terms of the Ruby's licence.
== Contact
Comments are welcome. Send an email to "Keisuke Minami":mailto:[email protected]