Title: EXIF Data Parsing Error · Issue #184 · python-openxml/python-docx · GitHub
Open Graph Title: EXIF Data Parsing Error · Issue #184 · python-openxml/python-docx
X Title: EXIF Data Parsing Error · Issue #184 · python-openxml/python-docx
Description: I have compared two images taken on iOS 8.1.2 and iOS 8.3. The images taken on iOS 8.3 could not be placed into a word doc via python-docx because it was throwing exception 'Unexpected EOF' in the image/helpers.py file, when it was tryin...
Open Graph Description: I have compared two images taken on iOS 8.1.2 and iOS 8.3. The images taken on iOS 8.3 could not be placed into a word doc via python-docx because it was throwing exception 'Unexpected EOF' in the ...
X Description: I have compared two images taken on iOS 8.1.2 and iOS 8.3. The images taken on iOS 8.3 could not be placed into a word doc via python-docx because it was throwing exception 'Unexpected EOF'...
Opengraph URL: https://github.com/python-openxml/python-docx/issues/184
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"EXIF Data Parsing Error","articleBody":"I have compared two images taken on iOS 8.1.2 and iOS 8.3. The images taken on iOS 8.3 could not be placed into a word doc via python-docx because it was throwing exception 'Unexpected EOF' in the image/helpers.py file, when it was trying to parse the string value for that field. I traced through the code and then looked at the images in a hex editor.\n\nBoth images and their EXIF data seem to display correctly without error in a number of image programs.\n\nI think it's possible that in the EXIF data, (which usually has a tag_code, value_count and value_offset directory for each EXIF field), the value placed in the 'value_offset' area is the value itself if it can fit within a 4-byte field, else a relative address is placed to where that value is actually stored. See image below for a (hopefully clear) explanation of what I found.\n\nThanks.\n\n","author":{"url":"https://github.com/colin-mcdonald","@type":"Person","name":"colin-mcdonald"},"datePublished":"2015-06-04T14:05:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/184/python-docx/issues/184"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2dbb7971-a1bc-645f-6d9c-214eaf9f5b57 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2AE:200DD2:16C5A8A:1ECFB34:6972B154 |
| html-safe-nonce | 9a26daba21362dc5ecc765531193e15d2e6c7c855c78c5d0a46df6c00e86157c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkFFOjIwMEREMjoxNkM1QThBOjFFQ0ZCMzQ6Njk3MkIxNTQiLCJ2aXNpdG9yX2lkIjoiMjgyMTMzMDE3NDE2OTIzMTcwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d7c4fb93d89245adc1b13da51de1b668c700b2e632e37038975e8cc9d3fb35de |
| hovercard-subject-tag | issue:85114136 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-openxml/python-docx/184/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c4bef9e7d555273586168244a621a9c021a51622e9dea74ba2bccb21e22c124b/python-openxml/python-docx/issues/184 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c4bef9e7d555273586168244a621a9c021a51622e9dea74ba2bccb21e22c124b/python-openxml/python-docx/issues/184 |
| og:image:alt | I have compared two images taken on iOS 8.1.2 and iOS 8.3. The images taken on iOS 8.3 could not be placed into a word doc via python-docx because it was throwing exception 'Unexpected EOF' in the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colin-mcdonald |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae357919e9cc5fb635a01c9a2cc530478d3ac85f55090215eb70e1beca3385ac |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openxml/python-docx git https://github.com/python-openxml/python-docx.git |
| octolytics-dimension-user_id | 3403760 |
| octolytics-dimension-user_login | python-openxml |
| octolytics-dimension-repository_id | 13592924 |
| octolytics-dimension-repository_nwo | python-openxml/python-docx |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13592924 |
| octolytics-dimension-repository_network_root_nwo | python-openxml/python-docx |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 625f1bd9f76a617a9c0729e2de91edb56b6ce42f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width