debugging

pull/1/head
Oliver Kennedy 2018-04-27 20:56:42 -04:00
parent cff51a4fa5
commit 1cd6f265a6
2 changed files with 13 additions and 13 deletions

View File

@ -93,18 +93,6 @@
"height" : 318
}
},
"Saurav Singhi" : {
"status" : "PhD",
"projects" : ["astral"],
"advisor" : ["Luke Ziarek"],
"joint_advisor": true,
"ubit" : "sauravsi",
"pic" : {
"file" : "https://odin.cse.buffalo.edu/assets/people/saurav.jpg",
"width" : 276,
"height" : 326
}
},
"Lisa Lu" : {
"status" : "PhD",
"projects" : ["mimir"],
@ -159,6 +147,18 @@
}
},
"temp-leave" : {
"Saurav Singhi" : {
"status" : "PhD",
"projects" : ["astral"],
"advisor" : ["Luke Ziarek"],
"joint_advisor": true,
"ubit" : "sauravsi",
"pic" : {
"file" : "https://odin.cse.buffalo.edu/assets/people/saurav.jpg",
"width" : 276,
"height" : 326
}
},
"Jon Logan" : {
"status" : "PhD",
"projects" : ["mimir"],

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 = ["-size", size.join("x")]
conversion_params = ["-resize", box.join("x")]
errors = box.zip(size).map { |target, actual| target - actual }
padding[:left] += errors[0]/2
padding[:right] += errors[0]/2