From 55baf54ab199d20d8816125f32ebedb5de28820c Mon Sep 17 00:00:00 2001 From: Flummi Date: Sun, 11 Sep 2016 17:36:24 +0200 Subject: [PATCH] fix --- src/lib.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.js b/src/lib.js index dbcd9dd..95755d9 100644 --- a/src/lib.js +++ b/src/lib.js @@ -114,7 +114,8 @@ Lib.prototype.generateThumbs = () => { break; case "image/png": case "image/jpeg": - cmd = 'convert -thumbnail 256x256 '+e.dest+' -gravity center -crop 128x128+0+0 +repage '+thumbnail; + //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; break; } exec(cmd, (error) => {