This commit is contained in:
les 2020-07-19 22:05:11 +02:00
parent 139bde40bd
commit ca5cb474ba

View file

@ -75,8 +75,8 @@ module.exports = {
const outStream = fs.createWriteStream(finalPath)
const thumbStream = fs.createWriteStream(thumbPath)
const resizer = sharp().resize(1200).jpg({ quality: 95 })
const thumbnailer = sharp().resize(400).jpg({ quality: 90 })
const resizer = sharp().resize(1200).jpeg({ quality: 95 })
const thumbnailer = sharp().resize(400).jpeg({ quality: 90 })
const response = await axios({ method: 'GET', url, responseType: 'stream' })