insano_image_resizer 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/insano_image_resizer/processor.rb +0 -5
- metadata +2 -2
@@ -190,10 +190,6 @@ module InsanoImageResizer
|
|
190
190
|
end
|
191
191
|
|
192
192
|
transform[:scale] *= shrink_factor
|
193
|
-
transform[:x] *= shrink_factor
|
194
|
-
transform[:y] *= shrink_factor
|
195
|
-
transform[:w] *= shrink_factor
|
196
|
-
transform[:h] *= shrink_factor
|
197
193
|
|
198
194
|
if (input_path[-4..-3] != ".")
|
199
195
|
FileUtils.mv(input_path, input_path+"."+output_extension)
|
@@ -207,7 +203,6 @@ module InsanoImageResizer
|
|
207
203
|
|
208
204
|
else
|
209
205
|
run("#{@vips_path} im_affine '#{input_path}' '#{output_path}#{quality_extension}' #{transform[:scale]} 0 0 #{transform[:scale]} 0 0 #{transform[:x]} #{transform[:y]} #{transform[:w]} #{transform[:h]}")
|
210
|
-
|
211
206
|
end
|
212
207
|
|
213
208
|
return output_path
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: insano_image_resizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
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-06-
|
12
|
+
date: 2012-06-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|