debugging

pull/1/head
Oliver Kennedy 2018-04-27 20:51:53 -04:00
parent 73e1e7b9da
commit cff51a4fa5
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module ImageSmith
.map { |base, target| target.to_f / base.to_f }
.min
size.map!{ |dim| (dim * scale).to_i }
conversion_params = ["-resize", size.join("x")]
conversion_params = ["-size", size.join("x")]
errors = box.zip(size).map { |target, actual| target - actual }
padding[:left] += errors[0]/2
padding[:right] += errors[0]/2