File: README.txt

package info (click to toggle)
libimage-size-ruby 1%3A0.1.1-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 236 kB
  • ctags: 234
  • sloc: ruby: 1,543; makefile: 11
file content (49 lines) | stat: -rwxr-xr-x 1,116 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
= 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

* 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:keisuke@rccn.com