From da6e2acc1d5cdc97304a7be7b8f2bfbefbcee981 Mon Sep 17 00:00:00 2001 From: Flummi Date: Sun, 11 Sep 2016 17:38:29 +0200 Subject: [PATCH] :^) --- src/lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.js b/src/lib.js index 95755d9..60a6253 100644 --- a/src/lib.js +++ b/src/lib.js @@ -115,7 +115,7 @@ Lib.prototype.generateThumbs = () => { case "image/png": case "image/jpeg": //cmd = 'convert -thumbnail 256x256 '+e.dest+' -gravity center -crop 128x128+0+0 +repage '+thumbnail; - cmd = 'convert '+thumbnail+' -resize "200x200^" -gravity center -crop 128x128+0+0 +repage '+thumbnail; + cmd = 'convert '+e.dest+' -resize "200x200^" -gravity center -crop 128x128+0+0 +repage '+thumbnail; break; } exec(cmd, (error) => {