| Path: | README.txt |
| Last Update: | Mon Apr 23 01:18:20 +0900 2007 |
measure image (GIF, PNG, JPEG ,,, etc) size code by Pure Ruby ["PCX", "PSD", "XPM", "TIFF", "XBM", "PGM", "PBM", "PPM", "BMP", "JPEG", "PNG", "GIF", "SWF"]
The latest version of image_size can be found at
You can install image_size with the following command.
% ruby setup.rb
from its distribution directory.
Download and install image_size with the following.
gem install imagesize
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
This code is free to use under the terms of the Ruby‘s licence.
Comments are welcome. Send an email to "Keisuke Minami":keisuke@rccn.com