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

压缩失真问题 #73

Open
yinhaogt opened this issue Sep 27, 2023 · 3 comments
Open

压缩失真问题 #73

yinhaogt opened this issue Sep 27, 2023 · 3 comments

Comments

@yinhaogt
Copy link

Steps to reproduce

imagemin()直接调用

What is expected?

正确压缩

What is actually happening?

imagemin()直接调用就会导致颜色错误,有锯齿,只有某些图片会有问题
imagemin({
compress: {}
})
这样就不失真,很奇怪

System Info

macos13 m1pro

Any additional comments?

No response

@ErKeLost
Copy link
Member

ErKeLost commented Sep 27, 2023

按理说你写的这两种应该是一样的 有 demo 么 没有传option 会用 默认的一套

https://github.com/unplugin/unplugin-imagemin/blob/main/src/core/compressOptions.ts 这是配置

@yinhaogt
Copy link
Author

主要是图片不方便给,等我有时间我调试一下看看

@ErKeLost
Copy link
Member

主要是图片不方便给,等我有时间我调试一下看看

好的 我也看一下 是不是插件这边的问题

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