From 8b8f20a6d1dd8d2d7c6b041323297ddda2ff8df7 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Tue, 12 Mar 2019 23:08:50 +0100 Subject: [PATCH] Debug --- libs/aws.js | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/libs/aws.js b/libs/aws.js index 8e07881..4f2dada 100644 --- a/libs/aws.js +++ b/libs/aws.js @@ -52,23 +52,24 @@ class Aws { try { (async () => { - const file = await imagemin([newFile], '/tmp', { - plugins: [ - imageminJpegtran(), - imageminPngquant({ - quality: '65-80' - }) - ] - }) + // const file = await imagemin([newFile], '/tmp', { + // plugins: [ + // imageminJpegtran(), + // imageminPngquant({ + // quality: '65-80' + // }) + // ] + // }) - console.log('Après imagemin') + // console.log('Après imagemin') this._send({ - path: file[0].path, + path: newFile, + // path: file[0].path, filename: params.filename }, (err, res) => { callback(err, res) - fs.unlink(file[0].path, () => { }) + // fs.unlink(file[0].path, () => { }) }) })() } catch (e) {