image8 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/image8.gemspec +1 -1
  2. data/lib/image8.rb +2 -2
  3. metadata +3 -3
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "image8"
3
- s.version = "0.3.5"
3
+ s.version = "0.3.6"
4
4
  s.date = "2010-06-24"
5
5
  s.summary = "dynamic image resizing."
6
6
  s.email = "harry@vangberg.name"
@@ -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.rows
109
- actual_height = image.columns
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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Harry Vangberg