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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:706a0093-cdd0-beec-1f95-8cb2b5b4ee62 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E760:456F1:35E69FC:4994C07:6972CC45 |
| html-safe-nonce | c911f98eb364c81b86de50a6211f037c830f676cfd6b9a2c7c904d25c28d89c0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzYwOjQ1NkYxOjM1RTY5RkM6NDk5NEMwNzo2OTcyQ0M0NSIsInZpc2l0b3JfaWQiOiI4OTkxNDk2MjI5MDEwNzIxODYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 178408bd5ae12f3f675f64b90ac86cc9f6e2d32a7bbc0184aa7f43780b74280e |
| hovercard-subject-tag | pull_request:2651105718 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 |
| 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 full-width-p-0 |
| disable-turbo | false |
| 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