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

Destination path null #412

Open
jerrydomm opened this issue Feb 21, 2023 · 1 comment
Open

Destination path null #412

jerrydomm opened this issue Feb 21, 2023 · 1 comment

Comments

@jerrydomm
Copy link

Hi, a try to convert to webp and I get null in destination path:

data: <Buffer 52 49 46 46 d6 2f 00 00 57 45 42 50 56 50 38 58 0a 00 00 00 10 00 00 00 b1 01 00 58 01 00 41 4c 50 48 48 01 00 00 01 2f 20 10 48 f6 c7 5d 20 8d 88 88 ... 12204 more bytes>, path: null

Code:

import imagemin from 'imagemin';
import imageminWebp from 'imagemin-webp';


const files = await imagemin(['img/home/*.{jpeg,png,jpg}'], {
    destination: 'img/buildwebp',
    plugins: [imageminWebp({quality: 80})],
  });
console.log(files);

Any help?

Thanks...

@Skyknight47
Copy link

Having the same issue. Did you manage to find a solution yet?

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

2 participants