W
W
wakenby2020-11-25 18:33:16
Node.js
wakenby, 2020-11-25 18:33:16

Why do webp photos lose saturation when using imagemin-webp?

To create webp I use this plugin :

plugins: [
  new Imagemin({
    filename: '[path][name].webp',
    minimizerOptions: {
      plugins: [
        ['imagemin-webp']
      ]
    }
  }),
  new Imagemin({
    minimizerOptions: {
      plugins: [
        ['imagemin-mozjpeg', { progressive: true }],
        ['imagemin-optipng', { optimizationLevel: 3 }]
      ]
    }
  })
]


I have photos in dist in webp format, but they lose color saturation. I tried to use other plugins, the outcome is the same, the saturation drops. Saturation drops if using ['imagemin-webp'], but not using it webp images weigh the same as the original {jpg, png}.

Original:

5fbe792c0fff6498712124.png

Processing:

5fbe790c7ff44202336691.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question