debugging
parent
cff51a4fa5
commit
1cd6f265a6
24
db/lab.json
24
db/lab.json
|
@ -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"],
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue