-
Notifications
You must be signed in to change notification settings - Fork 31
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
OcrdExif: Pillow's IFDRational
is unsupported
#270
Comments
This is critical, because it drags down our current Those 2 bags which evade the error are from the subset we already identified as coming from lossy JPEGs. And, it seems, these 2 are the ones which show no The error disappears with Pillow 6.1.0 BTW. |
So can someone please determine whether #238 still happens with 6.1.0? @kba @finkf I traced your original description in the Gitter log and you reported the problem on a file called |
Here's the TIFF. 179470.zip Debugging this now. |
Unfortunately, yes: def test_pil_version(self):
"""
Test segfault issue in PIL TiffImagePlugin
Run the same code multiple times to make segfaults more probable
Should fail persistently:
5.3.1 no
5.4.1 no
6.0.0 yes
6.1.0 yes
"""
for _ in range(0, 10):
pil_image = Image.open(assets.path_to('grenzboten-test/data/OCR-D-IMG-BIN/p179470'))
pil_image.crop(box=[1539, 202, 1626, 271]) throws random segfaults for Pillow 6.0.0 and 6.1.0 :-/ I'll check whether there's a workaround in OcrdExif... |
I get the following error when using
OcrdExif
on (most of) the TIFFs in the Metastore GT Bags:It does not happen on
loeber_heuschrecken_1693
andwecker_kochbuch_1598
(but all 34 other bags).We already chased this exact error in a Travis build for Python 3.4 here, but this time the error occurs on Python 3.6.5 (and Pillow 5.4.1)!
I fail to see any reason why the class
IFDRational
would not allow the multiplication operator.The text was updated successfully, but these errors were encountered: