vite-plugin-imagemin icon indicating copy to clipboard operation
vite-plugin-imagemin copied to clipboard

imagemin error

Open 823239259 opened this issue 4 years ago • 11 comments

I encountered this problem, the size of the picture cannot be compressed.

viteImagemin({ gifsicle: { optimizationLevel: 7, interlaced: false }, optipng: { optimizationLevel: 7 }, mozjpeg: { quality: 20 }, pngquant: { quality: [0.8, 0.9], speed: 4 }, svgo: { plugins: [ { name: "removeViewBox" }, { name: "removeEmptyAttrs", active: false } ] } })

image

823239259 avatar Jul 06 '21 07:07 823239259

I can try, can you give me a Reproduce? image

anncwb avatar Jul 15 '21 15:07 anncwb

I can try, can you give me a Reproduce? image

I encountered same problem,It can be compressed successfully locally,but failed in jenkins:

In local: ✨ [vite-plugin-imagemin]- compressed image resource successfully: dist/assets/logo.7ffb94ff.png -46% 12.06kb / tiny: 6.60kb dist/assets/background.3dfa46d5.png -97% 2349.62kb / tiny: 92.36kb

In jenkins: imagemin error:/var/jenkins_home/workspace/tsp-web/dist/assets/logo.7ffb94ff.png imagemin error:/var/jenkins_home/workspace/tsp-web/dist/assets/background.3dfa46d5.png

love51854560 avatar Jul 22 '21 08:07 love51854560

尝试在linux安装下 https://vvbin.cn/doc-next/other/faq.html#%E5%9C%A8-linux-%E5%86%85%E4%BE%9D%E8%B5%96%E5%AE%89%E8%A3%85%E5%A4%B1%E8%B4%A5

anncwb avatar Aug 01 '21 04:08 anncwb

I have been having this issue for a few weeks, I tried disabling the svgo section of my vite.config.js and I am back in business...

phillduffy avatar Aug 05 '21 10:08 phillduffy

同样是不起作用,测试了几个项目都是不起作用。不知道该怎么给你复现的demo

Minori-ty avatar Aug 07 '21 17:08 Minori-ty

oh,还是不行,都是ts配置才行吗

cm159289 avatar Aug 27 '21 12:08 cm159289

image

lxy030988 avatar Jul 12 '22 08:07 lxy030988

我也碰到这个问题了

lxy030988 avatar Jul 12 '22 08:07 lxy030988

请问这个问题有人解决吗

shmilytp avatar Nov 28 '23 03:11 shmilytp

请问这个问题有人解决吗

用yarn下载

Minori-ty avatar Nov 28 '23 04:11 Minori-ty