Skip to content

Invalid settings specified for the resizer. #29

Description

@jordicasesnoves

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions