got this error when the file is not really a jpeg, basically the extension is wrong. Did you check that ?
0.5.0 giving "Premature end of JPEG file" error.
Not sure what may be causing this. I've been using 0.2.0 because it's been stable for me, but went to test out 0.5.0 in hopes it would fix a problem that was being reported to me with our grunt build
task. However, when I went to upgrade I discovered the same bug that was being reported!
Running "imagemin:dist" (imagemin) task
✔ _dist/images/code_bg.png (already optimized)
✔ _dist/images/bird_32_gray_fail.png (already optimized)
✔ _dist/images/bird_32_gray.png (already optimized)
✔ _dist/images/comics/comic.jpg (already optimized)
✔ _dist/images/comics/characters.jpg (already optimized)
✔ _dist/images/comics/kcco-ep1.jpg (already optimized)
✔ _dist/images/comics/introduction-to-keep-calm-and-code-on.jpg (already optimized)
✔ _dist/images/comics/keep-calm-and-code-on-1-pokemon-institute-security-reports.jpg (already optimized)
✔ _dist/images/comics/keep-calm-and-code-on-3-code-signing.jpg (already optimized)
✔ _dist/images/comics/keep-calm-and-code-on-2-card-skimmers.jpg (already optimized)
Warning: Premature end of JPEG file
Use --force to continue.
Aborted due to warnings.
Not sure what all information is needed. Please let me know. Thanks!
该提问来源于开源项目:gruntjs/grunt-contrib-imagemin
- 点赞
- 写回答
- 关注问题
- 收藏
- 复制链接分享
- 邀请回答
6条回答
为你推荐
- springboot整合mybatisPlus中报错
- R语言安装包失败 but >= 1.0.6 is required
- r语言
- 1个回答
- 如何禁用CGO进行测试
- docker
- 1个回答
- 使用lint命令构建docker go应用
- docker
- 1个回答
- 如何在巨大的Apache / PHP驻留内存使用上找到罪魁祸首模块或脚本?
- 从EC2上传文件到S3突然停止工作
- php
- 1个回答
- CentOS6.3 运行yum update 时报错:Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
- linux
- 0个回答
- 安装软件包的以前版本
- node.js
- 0个回答
- 安装 mysql2时出错: 未能构建 gem 原生扩展
- jupyter安装jupyter_contrib_nbextensions之后nbextensions标签不显示
- python
- 8个回答
- c++中jsoncpp解析json配置文件的步鄹?
- c++
- visual studio
- json
- 3个回答
- fedora开机慢,要100秒
- linux
- 1个回答