insano_image_resizer 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/insano_image_resizer/processor.rb +2 -2
- metadata +1 -1
@@ -198,11 +198,11 @@ module InsanoImageResizer
|
|
198
198
|
intermediate_path = input_path[0..-4]+"_shrunk." + output_extension
|
199
199
|
|
200
200
|
run("vips im_shrink '#{input_path}' '#{intermediate_path}#{quality_extension}' #{shrink_factor} #{shrink_factor}")
|
201
|
-
run("vips
|
201
|
+
run("vips im_affine '#{intermediate_path}' '#{output_path}#{quality_extension}' #{transform[:scale]} 0 0 #{transform[:scale]} 0 0 #{transform[:x]} #{transform[:y]} #{transform[:w]} #{transform[:h]}")
|
202
202
|
FileUtils.rm(intermediate_path)
|
203
203
|
|
204
204
|
else
|
205
|
-
run("vips
|
205
|
+
run("vips im_affine '#{input_path}' '#{output_path}#{quality_extension}' #{transform[:scale]} 0 0 #{transform[:scale]} 0 0 #{transform[:x]} #{transform[:y]} #{transform[:w]} #{transform[:h]}")
|
206
206
|
|
207
207
|
end
|
208
208
|
|