Commit graph

4 commits

Author SHA1 Message Date
graciousgrey 33b08f15e5 Tests: Add unit tests 2023-07-24 14:02:18 +02:00
Michael Mayer 11e7d3f0d1 JPEG: Refactor error correction for broken files #2463 #2721 #3363
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-06-29 19:28:56 +02:00
Daniel Albers da61515c4a
JPEG: Automatically fix files with missing EOI marker (#2721) 2023-06-29 10:34:51 +02:00
Michael Mayer 2125f1ae0a JPEG: Call Seek(0, 0) before opening image #2462 #2463
Found this here, although I'm really not sure how this should fix it:
- https://github.com/golang/go/issues/45902#issuecomment-1007953723

According to the tests I added, the error "unexpected EOF" remains!
At least this change shouldn't break anything either.... Help is more
than welcome if someone has more time to read through all the issue
comments.
2022-06-25 02:16:42 +02:00