sdsykes-fastimage_resize 1.0.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.textile +0 -58
  2. data/Rakefile +0 -3
  3. data/VERSION.yml +3 -3
  4. metadata +7 -26
data/README.textile CHANGED
@@ -2,12 +2,6 @@ h1. FastImage Resize
2
2
 
3
3
  h4. FastImage Resize is an extremely light solution for resizing images in ruby by using libgd
4
4
 
5
- FastImage Resize will resize gifs, jpegs, and png files.
6
-
7
- It uses resampling to get good looking results.
8
-
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
-
11
5
  h2. Examples
12
6
 
13
7
  <pre>
@@ -19,45 +13,6 @@ h2. Examples
19
13
  </pre>
20
14
  </code>
21
15
 
22
- The file my.gif is created locally, containing the resized image.
23
-
24
- h2. Installation
25
-
26
- First check the requirements section below.
27
-
28
- h4. Gem
29
-
30
- <pre>
31
- <code>
32
- sudo gem install sdsykes-fastimage_resize -s http://gems.github.com
33
- </pre>
34
- </code>
35
-
36
- h4. Rails
37
-
38
- Install the gem as above, and configure it in your environment.rb file as below:
39
- <pre>
40
- <code>
41
- ...
42
- Rails::Initializer.run do |config|
43
- ...
44
- config.gem "sdsykes-fastimage_resize", :lib=>"fastimage_resize"
45
- ...
46
- end
47
- ...
48
- </code>
49
- </pre>
50
-
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:
52
-
53
- <pre>
54
- <code>
55
- ENV['INLINEDIR'] = RAILS_ROOT + "/tmp" # for RubyInline
56
- </code>
57
- </pre>
58
-
59
- Then you're off - just use FastImage.resize() in your code as in the examples.
60
-
61
16
  h2. Requirements
62
17
 
63
18
  * RubyInline
@@ -82,19 +37,6 @@ See "http://www.libgd.org/":http://www.libgd.org/
82
37
 
83
38
  Libgd is commonly available on most unix platforms, including OSX.
84
39
 
85
- h2. Documentation
86
-
87
- "http://rdoc.info/projects/sdsykes/fastimage_resize":http://rdoc.info/projects/sdsykes/fastimage_resize
88
-
89
- h2. Caveats
90
-
91
- Because of the way that libgd works, gif files that have transparency may not always come through with the transparency perfectly retained.
92
-
93
-
94
- h2. Tests
95
-
96
- You'll need to 'sudo gem install fakeweb' to be able to run the tests
97
-
98
40
  h2. References
99
41
 
100
42
  * "http://blog.new-bamboo.co.uk/2007/12/3/super-f-simple-resizing":http://blog.new-bamboo.co.uk/2007/12/3/super-f-simple-resizing
data/Rakefile CHANGED
@@ -10,9 +10,6 @@ begin
10
10
  s.description = "FastImage Rssize is an extremely light solution for resizing images in ruby by using libgd."
11
11
  s.authors = ["Stephen Sykes"]
12
12
  s.files = FileList["[A-Z]*", "{lib,test}/**/*"]
13
- s.requirements << 'libgd, see www.libgd.org'
14
- s.add_dependency('RubyInline', '>= 3.8.2')
15
- s.add_dependency('sdsykes-fastimage', '>= 1.1.2')
16
13
  end
17
14
  rescue LoadError
18
15
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 1
3
- :major: 1
4
- :minor: 0
2
+ :patch: 0
3
+ :major: 0
4
+ :minor: 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdsykes-fastimage_resize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Sykes
@@ -9,30 +9,11 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-10 00:00:00 -07:00
12
+ date: 2009-07-07 00:00:00 -07:00
13
13
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: RubyInline
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 3.8.2
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: sdsykes-fastimage
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.1.2
34
- version:
35
- description: FastImage Rssize is an extremely light solution for resizing images in ruby by using libgd.
14
+ dependencies: []
15
+
16
+ description: FastImageResize is an extremely light solution for resizing images in ruby by using libgd.
36
17
  email: sdsykes@gmail.com
37
18
  executables: []
38
19
 
@@ -68,8 +49,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
49
  - !ruby/object:Gem::Version
69
50
  version: "0"
70
51
  version:
71
- requirements:
72
- - libgd, see www.libgd.org
52
+ requirements: []
53
+
73
54
  rubyforge_project:
74
55
  rubygems_version: 1.2.0
75
56
  signing_key: