Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

measure image size(GIF, PNG, JPEG ,,, etc)

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 Manifest.txt
Octocat-spinner-32 README.txt
Octocat-spinner-32 setup.rb
= image_size -- measure image size(GIF, PNG, JPEG ,,, etc)

measure image (GIF, PNG, JPEG ,,, etc) size code by Pure Ruby
["PCX", "PSD", "XPM", "TIFF", "XBM", "PGM", "PBM", "PPM", "BMP", "JPEG", "PNG", "GIF", "SWF"]

== Download

The latest version of image_size can be found at


== 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:
* image_size API Documents:

== Simple Example

  ruby "rubygems" # you use rubygems
  ruby "image_size"
  ruby "open-uri"
  open("", "rb") do |fh|

== 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"

Something went wrong with that request. Please try again.