Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid settings specified for the resizer. #29

Open
jordicasesnoves opened this issue Sep 22, 2020 · 0 comments
Open

Invalid settings specified for the resizer. #29

jordicasesnoves opened this issue Sep 22, 2020 · 0 comments

Comments

@jordicasesnoves
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant