scale_down 0.2.3 → 0.2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/scale_down/image.rb +1 -2
- data/lib/scale_down/version.rb +1 -1
- metadata +3 -2
data/Gemfile.lock
CHANGED
data/lib/scale_down/image.rb
CHANGED
@@ -78,8 +78,7 @@ class ScaleDown::Image
|
|
78
78
|
|
79
79
|
def resize(file, properties)
|
80
80
|
geo = geometry(properties)
|
81
|
-
file.auto_orient! unless file.get_exif_by_entry("Orientation").nil?
|
82
|
-
|
81
|
+
file.auto_orient! unless Hash[file.get_exif_by_entry("Orientation")]["Orientation"].nil?
|
83
82
|
if properties[:crop]
|
84
83
|
file.crop_resized!(geo.width, geo.height, Magick::CenterGravity)
|
85
84
|
else
|
data/lib/scale_down/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scale_down
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 81
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
9
|
- 3
|
10
|
-
|
10
|
+
- 1
|
11
|
+
version: 0.2.3.1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- John Weir
|