I am so, incredibly stupid

fixed swings not generating
This commit is contained in:
Colon 2020-06-24 18:26:53 -04:00
parent 16131bd26f
commit c160395ef4

View file

@ -276,7 +276,7 @@ module.exports = async (app, req, res) => {
function finish(img) {
img.autocrop(0.01, false)
if (form == "swing") b.resize(120, 111)
if (form == "swing") img.resize(120, 111)
if (img.bitmap.height == 300) ic.autocrop(1, false)
if (sizeParam) {
let imgSize = Math.round(req.query.size)