question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.5.0 giving "Premature end of JPEG file" error.

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
maboiteaspamcommented, Feb 18, 2014

got this error when the file is not really a jpeg, basically the extension is wrong. Did you check that ?

0reactions
vladikoffcommented, Mar 28, 2014

0.6.0 is out. Let us know if you still have this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Premature end of JPEG file - Stack Overflow
Also "Premature end of JPEG file" it's a general software error if image content is not complete. Software determines it by color of...
Read more >
Premature end of JPEG file - Agisoft Metashape
I'm getting the error "premature end of jpeg file" while merging five chunks with an average of about 1000 images in them.
Read more >
opencv_traincascade message: Premature end of JPEG file. edit
At Stage 9 of training i am this message Premature end of JPEG file ... the error with openCV info and you will...
Read more >
Bug listing with status RESOLVED with resolution TEST ...
Bug :233 - "Emacs segfaults when merged through the sandbox. ... Bug:11397 - "gtkmathview-0.5.0 ebuild (New Package)" status:RESOLVED resolution:TEST-REQUEST ...
Read more >
convert always has exit code 0 (success) even if failed
And on testing the error codes returned on a known bad jpg I ... gives me a 0. ... convert-im6.q16: Premature end of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found