Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

IOError: image file is truncated #130

Open
lordfriend opened this issue May 5, 2018 · 2 comments
Open

IOError: image file is truncated #130

lordfriend opened this issue May 5, 2018 · 2 comments
Assignees

Comments

@lordfriend
Copy link
Owner

https://sentry.io/nyasoft/albireo-scheduler-prod/issues/546320403/

IOError: image file is truncated
  File "utils/image.py", line 18, in get_dominant_color
    (r, g, b) = color_thief.get_color(quality=quality)
  File "dist-packages/colorthief.py", line 50, in get_color
    palette = self.get_palette(5, quality)
  File "dist-packages/colorthief.py", line 63, in get_palette
    image = self.image.convert('RGBA')
  File "PIL/Image.py", line 842, in convert
    self.load()
  File "PIL/ImageFile.py", line 204, in load
    raise IOError("image file is truncated")

image file is truncated
@lordfriend lordfriend self-assigned this May 5, 2018
@kslr
Copy link

kslr commented May 6, 2018

Is there a problem with the picture?

@lordfriend
Copy link
Owner Author

lordfriend commented May 6, 2018

Not sure, because it is totally asynchronized. the stack trace didn't provide too much useful information. I don't know which image cause this error. But by searching the error message through the StackOverflow. got some hints about the usage of PIL.

Anyway, this is not a very critical issue. The failure of extract image dominant color is tolerable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants