carrierwave-vips 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
- module CarrierWave
4
-
5
- end
6
-
7
3
  require 'vips'
8
4
  require 'carrierwave/vips'
9
5
 
@@ -124,6 +124,9 @@ module CarrierWave
124
124
  elsif image.y_size > new_height
125
125
  left = 0
126
126
  top = (image.y_size - new_height) / 2
127
+ else
128
+ left = 0
129
+ top = 0
127
130
  end
128
131
 
129
132
  image.extract_area(left, top, new_width, new_height)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-vips
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-13 00:00:00.000000000 Z
12
+ date: 2012-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby-vips