fastimage_resize 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -8,6 +8,8 @@ It uses resampling to get good looking results.
8
8
 
9
9
  And it doesn't rely on installing external heavy libraries such as RMagick (which relies on ImageMagick or GraphicsMagick) or ImageScience (which relies on FreeImage).
10
10
 
11
+ FastImage Resize uses *Libgd*, which is commonly available on most unix platforms, including OSX. It is very likely that you already have this software installed on your server.
12
+
11
13
  h2. Examples
12
14
 
13
15
  <pre>
@@ -35,20 +37,28 @@ h4. Gem
35
37
 
36
38
  h4. Rails
37
39
 
38
- Install the gem as above, and configure it in your environment.rb file as below:
40
+ Install the gem as above, and for Rails 2 configure it in your environment.rb file as below:
39
41
  <pre>
40
42
  <code>
41
43
  ...
42
44
  Rails::Initializer.run do |config|
43
45
  ...
44
- config.gem "fastimage_resize", :lib=>"fastimage_resize"
46
+ config.gem "fastimage_resize"
45
47
  ...
46
48
  end
47
49
  ...
48
50
  </code>
49
51
  </pre>
50
52
 
51
- You may also need this in your environment.rb so that the rails process puts the compiled C code in a place it can access:
53
+ For Rails 3, add this to your Gemfile:
54
+
55
+ <pre>
56
+ <code>
57
+ gem 'fastimage_resize'
58
+ </code>
59
+ </pre>
60
+
61
+ For any Rails version, you may also need this in your environment.rb so that the rails process puts the compiled C code in a place it can access:
52
62
 
53
63
  <pre>
54
64
  <code>
@@ -82,6 +92,16 @@ See "http://www.libgd.org/":http://www.libgd.org/
82
92
 
83
93
  Libgd is commonly available on most unix platforms, including OSX.
84
94
 
95
+ On OSX, if you have "macports":http://www.macports.org/ you can use.
96
+
97
+ <pre>
98
+ <code>
99
+ sudo port install gd2
100
+ </code>
101
+ </pre>
102
+
103
+ It is also available in "homebrew":http://github.com/mxcl/homebrew (search for gd), and "fink":http://www.finkproject.org/ (try fink install gd2 gd2-bin).
104
+
85
105
  h2. Documentation
86
106
 
87
107
  "http://rdoc.info/projects/sdsykes/fastimage_resize":http://rdoc.info/projects/sdsykes/fastimage_resize
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 2
2
+ :patch: 3
3
3
  :major: 1
4
- :minor: 2
5
4
  :build:
5
+ :minor: 2
@@ -58,7 +58,7 @@ class FastImage
58
58
  fi = new(file_in, :raise_on_failure=>true)
59
59
  type_index = SUPPORTED_FORMATS.index(fi.type)
60
60
  raise FormatNotSupported unless type_index
61
- fi.resize_image(file_in, file_out, w, h, type_index, jpeg_quality)
61
+ fi.resize_image(file_in, file_out, w.to_i, h.to_i, type_index, jpeg_quality)
62
62
  end
63
63
 
64
64
  def resize_image(filename_in, filename_out, w, h, image_type, jpeg_quality); end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastimage_resize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 2
8
+ - 3
9
+ version: 1.2.3
5
10
  platform: ruby
6
11
  authors:
7
12
  - Stephen Sykes
@@ -9,29 +14,37 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-16 00:00:00 +02:00
17
+ date: 2010-05-25 00:00:00 +03:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: RubyInline
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 3
29
+ - 8
30
+ - 2
23
31
  version: 3.8.2
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: fastimage
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 1
43
+ - 2
44
+ - 0
33
45
  version: 1.2.0
34
- version:
46
+ type: :runtime
47
+ version_requirements: *id002
35
48
  description: FastImage Resize is an extremely light solution for resizing images in ruby by using libgd.
36
49
  email: sdsykes@gmail.com
37
50
  executables: []
@@ -67,18 +80,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
80
  requirements:
68
81
  - - ">="
69
82
  - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
70
85
  version: "0"
71
- version:
72
86
  required_rubygems_version: !ruby/object:Gem::Requirement
73
87
  requirements:
74
88
  - - ">="
75
89
  - !ruby/object:Gem::Version
90
+ segments:
91
+ - 0
76
92
  version: "0"
77
- version:
78
93
  requirements:
79
94
  - libgd, see www.libgd.org
80
95
  rubyforge_project:
81
- rubygems_version: 1.3.5
96
+ rubygems_version: 1.3.6
82
97
  signing_key:
83
98
  specification_version: 3
84
99
  summary: FastImage Resize - Image resizing fast and simple