Title: Fix Ascii IFD reading as TIFF6.0 spec by TheZ3ro · Pull Request #1451 · python-openxml/python-docx · GitHub
Open Graph Title: Fix Ascii IFD reading as TIFF6.0 spec by TheZ3ro · Pull Request #1451 · python-openxml/python-docx
X Title: Fix Ascii IFD reading as TIFF6.0 spec by TheZ3ro · Pull Request #1451 · python-openxml/python-docx
Description: This PR fixes #187 The TIFF6 specification writes: Value/Offset To save time and space the Value Offset contains the Value instead of pointing to the Value if and only if the Value fits into 4 bytes. If the Value is shorter than 4 bytes, it is left-justified within the 4-byte Value Offset, i.e., stored in the lower- numbered bytes. Whether the Value fits within 4 bytes is determined by the Type and Count of the field. python-docx by default uses the Value/Offset field as a offset for ASCII IFD, but sometime the Value/Offset field could contain directly the Value (if it contains a string with 4 or less characters including the final NULL byte/string terminator) This is the case for the 2 pictures linked in issue #187 (the Software ASCII field contains 8.3)
Open Graph Description: This PR fixes #187 The TIFF6 specification writes: Value/Offset To save time and space the Value Offset contains the Value instead of pointing to the Value if and only if the Value fits into 4 byt...
X Description: This PR fixes #187 The TIFF6 specification writes: Value/Offset To save time and space the Value Offset contains the Value instead of pointing to the Value if and only if the Value fits into 4 byt...
Opengraph URL: https://github.com/python-openxml/python-docx/pull/1451
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:eeded279-c858-f99e-1a07-d7490efd6866 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D726:122E03:1A25E03:2470EC9:69727CBD |
| html-safe-nonce | 62d1408ae4da1794f9a96dd7035138f45ced7123562a0a3b38106da8bb4d0b52 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzI2OjEyMkUwMzoxQTI1RTAzOjI0NzBFQzk6Njk3MjdDQkQiLCJ2aXNpdG9yX2lkIjoiMzY2NzM5NjY0MDgwMTcxNzQzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6f9ec2820fe16cab7512efe13b2cf04b9b86b28097500a5601bae64c62949540 |
| hovercard-subject-tag | pull_request:2207076687 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python-openxml/python-docx/pull/1451/files |
| twitter:image | https://avatars.githubusercontent.com/u/686894?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/686894?s=400&v=4 |
| og:image:alt | This PR fixes #187 The TIFF6 specification writes: Value/Offset To save time and space the Value Offset contains the Value instead of pointing to the Value if and only if the Value fits into 4 byt... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f3cc591a09ecfa43f68be4fde9ec95eccfdf6298db2cd7d08e9eae6c9f833329 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 208d56d4b5936bcb8a1d3b43096d573261817603 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width