Albireo
Albireo copied to clipboard
IOError: image file is truncated
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
Is there a problem with the picture?
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.