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

fix Error: image file is truncated #679

Merged
merged 1 commit into from
Mar 5, 2024
Merged

Conversation

axu2
Copy link
Collaborator

@axu2 axu2 commented Feb 27, 2024

This lets us handle corrupted files gracefully. (Bottom of image is corrupted.)

Error during conversion...:

Image file ...page_117.jpg is corrupted. Error: image file is truncated (6 bytes not processed)

Traceback:
File "kindlecomicconverter/KCC_gui.py", line 289, in run
File "kindlecomicconverter/comic2ebook.py", line 1146, in makeBook
File "kindlecomicconverter/comic2ebook.py", line 887, in detectCorruption

https://stackoverflow.com/questions/12984426/pil-ioerror-image-file-truncated-with-big-images

@axu2 axu2 merged commit 49bf80f into ciromattia:master Mar 5, 2024
@axu2 axu2 deleted the truncate branch March 5, 2024 05:37
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

Successfully merging this pull request may close these issues.

1 participant