Add 10w image size

This commit is contained in:
Eric Jinks 2017-12-06 15:51:50 +10:00
parent 5346fdaa54
commit 0db4bb1d19
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ const readFile = util.promisify(fs.readFile)
const options = {
inputDir: './public/images/uploads',
outputDir: './public/images/uploads/resized',
sizes: [300, 600, 1200, 1800],
sizes: [10, 300, 600, 1200, 1800],
imageFormats: ['jpg', 'jpeg', 'png', 'gif', 'webp']
}

View file

@ -1,4 +1,4 @@
const sizes = [300, 600, 1200, 1800]
const sizes = [10, 300, 600, 1200, 1800]
const outputDir = '/images/uploads/'
const resizedDir = '/images/uploads/resized/'