-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Hi!
So basically I'm using the loader with Next.js.
I set up my next.config.js file (webpack config) like this:
module.exports = {
webpack: (config, options) => {
config.module.rules.push({
test: /\.(png|jpe?g)$/,
loaders: [
{
loader: 'lqip-loader',
options: {
path: '/public', // your image going to be in media folder in the output dir
name: '[name].[ext]', // you can use [hash].[ext] too if you wish,
base64: true, // default: true, gives the base64 encoded image
palette: true // default: false, gives the dominant colours palette
}
}
]
})
return config
},
}So when I start the server I'm always getting this error:
Error: Invalid settings specified for the resizer.
at Resize.initialize (C:\Users\Jorudi\Code\NodeJSBlog\node_modules\jimp\resize.js:25:16)
at new Resize (C:\Users\Jorudi\Code\NodeJSBlog\node_modules\jimp\resize.js:17:10)
at Jimp.resize (C:\Users\Jorudi\Code\NodeJSBlog\node_modules\jimp\index.js:1762:22)
at C:\Users\Jorudi\Code\NodeJSBlog\node_modules\lqip\index.js:30:28
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
I have like +800 images...so this error shows up +800 times and then the server stucks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels