Page MenuHomePhabricator

CCC: Examine files by Geagea flagged corrupt
Closed, ResolvedPublic

Description

David_Ben-Gurion_pins_the_Haganah_ribbon_on_Chaim_Laskov._D358-069.jpg

Traceback (most recent call last):
  File "test_fileerror.py", line 38, in <module>
    test("./David_Ben-Gurion_pins_the_Haganah_ribbon_on_Chaim_Laskov._D358-069.jpg")
  File "test_fileerror.py", line 9, in test
    image.tobytes()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/Pillow-7.1.0.dev0-py3.8-macosx-10.9-x86_64.egg/PIL/Image.py", line 711, in tobytes
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/Pillow-7.1.0.dev0-py3.8-macosx-10.9-x86_64.egg/PIL/ImageFile.py", line 245, in load
OSError: image file is truncated (5 bytes not processed)

Moshe_Prager,_Jerusalem_1967.jpg
Works locally.

Revisions and Commits

Event Timeline

TheSandDoctor created this object with visibility "Public (No Login Required)".
TheSandDoctor added a commit: Restricted Diffusion Commit.Feb 12 2020, 10:24 PM

On server:

David

Traceback (most recent call last):
  File "test_fileerror.py", line 38, in <module>
    test("./David_Ben-Gurion_pins_the_Haganah_ribbon_on_Chaim_Laskov._D358-069.jpg")
  File "test_fileerror.py", line 9, in test
    image.tobytes()
  File "/usr/local/lib/python3.8/site-packages/Pillow-7.1.0.dev0-py3.8-linux-x86_64.egg/PIL/Image.py", line 711, in tobytes
  File "/usr/local/lib/python3.8/site-packages/Pillow-7.1.0.dev0-py3.8-linux-x86_64.egg/PIL/ImageFile.py", line 245, in load
OSError: image file is truncated (0 bytes not processed)

Moshe

Works

David is truncated early.

TheSandDoctor added a commit: Restricted Diffusion Commit.Feb 12 2020, 10:28 PM
TheSandDoctor added a commit: Restricted Diffusion Commit.Feb 12 2020, 10:37 PM

Also confirmed using vanilla pillow

Traceback (most recent call last):
  File "test_fileerror.py", line 38, in <module>
    test("./David_Ben-Gurion_pins_the_Haganah_ribbon_on_Chaim_Laskov._D358-069.jpg")
  File "test_fileerror.py", line 9, in test
    image.tobytes()
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\PIL\Image.py", line 701, in tobytes
    self.load()
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\PIL\ImageFile.py", line 245, in load
    raise OSError(
OSError: image file is truncated (5 bytes not processed)

File:Haim Laskov - Yackov Dori - David Ben-Gurion - Hagana Pin 1958.jpg (server side)

Traceback (most recent call last):
  File "test_fileerror.py", line 40, in <module>
    test("./Haim_Laskov_-_Yackov_Dori_-_David_Ben-Gurion_-_Hagana_Pin_1958.jpg")
  File "test_fileerror.py", line 9, in test
    image.tobytes()
  File "/usr/local/lib/python3.8/site-packages/Pillow-7.1.0.dev0-py3.8-linux-x86_64.egg/PIL/Image.py", line 711, in tobytes
  File "/usr/local/lib/python3.8/site-packages/Pillow-7.1.0.dev0-py3.8-linux-x86_64.egg/PIL/ImageFile.py", line 245, in load
OSError: image file is truncated (41 bytes not processed)

Locally

Traceback (most recent call last):
  File "test_fileerror.py", line 40, in <module>
    test("./Haim_Laskov_-_Yackov_Dori_-_David_Ben-Gurion_-_Hagana_Pin_1958.jpg")
  File "test_fileerror.py", line 9, in test
    image.tobytes()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/Pillow-7.1.0.dev0-py3.8-macosx-10.9-x86_64.egg/PIL/Image.py", line 711, in tobytes
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/Pillow-7.1.0.dev0-py3.8-macosx-10.9-x86_64.egg/PIL/ImageFile.py", line 245, in load
OSError: image file is truncated (45 bytes not processed)