# image_size.rb

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

## Methods:

### new(image)

receive image & measure size. argument is image String or IO.

### get_type

return type

### get_height

return height size

### get_width

return width size

## Class Methods:

### type

return type list (Array).

## How to

### argument is String

    open("image.gif", "rb") do |fh|
    	img = ImageSize.new(fh.read)
    end

### argument is IO

    open("image.gif", "rb") do |fh|
    	img = ImageSize.new(fh)
    end

### Type List

    ImageSize.type
     => ["PCX", "PSD", "XPM", "TIFF", "XBM", "XV", "PGM", "PBM", "PPM", "BMP", "JPEG", "PNG", "GIF", "OTHER"]