Title: feature: Shape.alternative_text by fsolleza · Pull Request #317 · python-openxml/python-docx · GitHub
Open Graph Title: feature: Shape.alternative_text by fsolleza · Pull Request #317 · python-openxml/python-docx
X Title: feature: Shape.alternative_text by fsolleza · Pull Request #317 · python-openxml/python-docx
Description: Hi, I added a little bit of code and two tests associated with that code so that users can add alt text to inline shapes. The API is consistent with InlineShape.height and InlineShape.width without modifying the InlineShape initializer or changing the add_picture method. This change was based off comments in #227. Users can add alt text as follows: from docx import Document doc = Document(path) pic = doc.add_picture(picture_path, cx, cy) pic.alt_text = "some alt text" I'm happy to take any input and make changes where you deem necessary. Thanks!
Open Graph Description: Hi, I added a little bit of code and two tests associated with that code so that users can add alt text to inline shapes. The API is consistent with InlineShape.height and InlineShape.width without...
X Description: Hi, I added a little bit of code and two tests associated with that code so that users can add alt text to inline shapes. The API is consistent with InlineShape.height and InlineShape.width without...
Opengraph URL: https://github.com/python-openxml/python-docx/pull/317
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:fc5ba393-f54e-0c8c-d967-332b04f22d5d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D8E2:B22A0:2694971:33AC3AA:696EDFE1 |
| html-safe-nonce | 3da40346550df231ba5b0020dbdf4636a973476bd36bc5a42f063e1a50ee2717 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEUyOkIyMkEwOjI2OTQ5NzE6MzNBQzNBQTo2OTZFREZFMSIsInZpc2l0b3JfaWQiOiI4Njg1MjY2ODg2MTY2NzY1NTM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 85cf82144b1063b4e0c1415a683c3cc76d37dae34639195e6545265916f92e25 |
| hovercard-subject-tag | pull_request:82000844 |
| 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/317/files |
| twitter:image | https://avatars.githubusercontent.com/u/8867477?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/8867477?s=400&v=4 |
| og:image:alt | Hi, I added a little bit of code and two tests associated with that code so that users can add alt text to inline shapes. The API is consistent with InlineShape.height and InlineShape.width without... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| 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 | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width