Title: fix: fallback to 72 dpi when image header is 0 (#1494) by thiagocborghi · Pull Request #1505 · python-openxml/python-docx · GitHub
Open Graph Title: fix: fallback to 72 dpi when image header is 0 (#1494) by thiagocborghi · Pull Request #1505 · python-openxml/python-docx
X Title: fix: fallback to 72 dpi when image header is 0 (#1494) by thiagocborghi · Pull Request #1505 · python-openxml/python-docx
Description: Adds a 72-dpi fallback when an image header declares 0 dpi, preventing the ZeroDivisionError reported in #1494. The fix changes two getter methods (horz_dpi / vert_dpi) and adds a regression test with a 0-dpi JPEG fixture.
Open Graph Description: Adds a 72-dpi fallback when an image header declares 0 dpi, preventing the ZeroDivisionError reported in #1494. The fix changes two getter methods (horz_dpi / vert_dpi) and adds a regression test w...
X Description: Adds a 72-dpi fallback when an image header declares 0 dpi, preventing the ZeroDivisionError reported in #1494. The fix changes two getter methods (horz_dpi / vert_dpi) and adds a regression test w...
Opengraph URL: https://github.com/python-openxml/python-docx/pull/1505
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:c8e77b17-dd1f-5311-1466-f5af2a37eb47 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A8DE:1132B7:35CA240:49E65EA:6972CCAB |
| html-safe-nonce | ca73fbbb40e670a1fdc13cdae1e9204cc18323c35193597c5f112efd8e68f56d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOERFOjExMzJCNzozNUNBMjQwOjQ5RTY1RUE6Njk3MkNDQUIiLCJ2aXNpdG9yX2lkIjoiMjAyMDgzMzc3NDQwMzc2NzQ2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 04fe92c30e3c268e444e634dd36f2606c94af17624ae69fc4107be32ec546208 |
| hovercard-subject-tag | pull_request:2651105718 |
| 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/1505/files |
| twitter:image | https://avatars.githubusercontent.com/u/25887590?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/25887590?s=400&v=4 |
| og:image:alt | Adds a 72-dpi fallback when an image header declares 0 dpi, preventing the ZeroDivisionError reported in #1494. The fix changes two getter methods (horz_dpi / vert_dpi) and adds a regression test w... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e5abb0753dbd4190d15d366a819b0ca85f68a7e5bbe3d32213b346c41685c80a |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 88896109b054799a7f22afaeee541d00f9170dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width