image8 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/image8.gemspec +1 -1
- data/lib/image8.rb +2 -2
- metadata +3 -3
data/image8.gemspec
CHANGED
data/lib/image8.rb
CHANGED
@@ -105,8 +105,8 @@ class Image8 < Sinatra::Base
|
|
105
105
|
image.resize_to_fill! width, height
|
106
106
|
when "max" then
|
107
107
|
width, height = format.split("x").map {|x| x.to_i}
|
108
|
-
actual_width = image.
|
109
|
-
actual_height = image.
|
108
|
+
actual_width = image.columns
|
109
|
+
actual_height = image.rows
|
110
110
|
|
111
111
|
if( actual_width > width || actual_height > height )
|
112
112
|
image.change_geometry!(format) {|width, height|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image8
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 6
|
10
|
+
version: 0.3.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Harry Vangberg
|