{"action":"opened","issue":{"url":"https://api.github.com/repos/mapnik/python-mapnik/issues/152","repository_url":"https://api.github.com/repos/mapnik/python-mapnik","labels_url":"https://api.github.com/repos/mapnik/python-mapnik/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/mapnik/python-mapnik/issues/152/comments","events_url":"https://api.github.com/repos/mapnik/python-mapnik/issues/152/events","html_url":"https://github.com/mapnik/python-mapnik/issues/152","id":237116635,"number":152,"title":"Failure to open tiff file with mapnik 3.0.15","user":{"login":"tomhughes","id":147741,"avatar_url":"https://avatars3.githubusercontent.com/u/147741?v=3","gravatar_id":"","url":"https://api.github.com/users/tomhughes","html_url":"https://github.com/tomhughes","followers_url":"https://api.github.com/users/tomhughes/followers","following_url":"https://api.github.com/users/tomhughes/following{/other_user}","gists_url":"https://api.github.com/users/tomhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/tomhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomhughes/subscriptions","organizations_url":"https://api.github.com/users/tomhughes/orgs","repos_url":"https://api.github.com/users/tomhughes/repos","events_url":"https://api.github.com/users/tomhughes/events{/privacy}","received_events_url":"https://api.github.com/users/tomhughes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-20T07:28:49Z","updated_at":"2017-06-20T07:28:49Z","closed_at":null,"body":"I assume this is linked to the various tiff related changes that have gone into mapnik recently but with mapnik 3.0.15 python-mapnik seems to be unable to read some tiff files. The test suite errors with:\r\n\r\n```\r\n======================================================================\r\nERROR: python_tests.image_tiff_test.test_tiff_rgba8_compare_tiled\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/home/thh/rpm/BUILD/python-mapnik-1635afe2359a0984868a47857645459c0fce44e3/test/python_tests/image_tiff_test.py\", line 262, in test_tiff_rgba8_compare_tiled\r\n    im2 = mapnik.Image.open(filepath2)\r\nRuntimeError: Can't open tiff file\r\n```\r\n\r\nIt is trying to read `/tmp/mapnik-tiff-rgba8-stripped.tiff`which it has just saved, and which tiffinfo describes as follows:\r\n\r\n```\r\nTIFF Directory at offset 0x112a6 (70310)\r\n  Image Width: 256 Image Length: 256 Image Depth: 1\r\n  Tile Width: 256 Tile Length: 256 Tile Depth: 1\r\n  Bits/Sample: 8\r\n  Sample Format: unsigned integer\r\n  Compression Scheme: AdobeDeflate\r\n  Photometric Interpretation: RGB color\r\n  Extra Samples: 1<assoc-alpha>\r\n  Samples/Pixel: 4\r\n  Planar Configuration: single image plane\r\n  Predictor: horizontal differencing 2 (0x2)\r\n```\r\n"}}
{"actor":{"display_login":"tomhughes"}}