Title: Fix #5302: Proper alpha-blending for jpeg by mdboom · Pull Request #5324 · matplotlib/matplotlib · GitHub
Open Graph Title: Fix #5302: Proper alpha-blending for jpeg by mdboom · Pull Request #5324 · matplotlib/matplotlib
X Title: Fix #5302: Proper alpha-blending for jpeg by mdboom · Pull Request #5324 · matplotlib/matplotlib
Description: Saving a JPEG with an alpha channel doesn't look right -- I think pillow just removes the alpha channel altogether and uses the rest of the RGB values as-is. This blends RGBA images onto a white background before saving. This is JPEG-specific since it's our only raster output file format that doesn't support alpha blending. If we ever grow another (unlikely) this will need to be duplicated there.
Open Graph Description: Saving a JPEG with an alpha channel doesn't look right -- I think pillow just removes the alpha channel altogether and uses the rest of the RGB values as-is. This blends RGBA images onto a whit...
X Description: Saving a JPEG with an alpha channel doesn't look right -- I think pillow just removes the alpha channel altogether and uses the rest of the RGB values as-is. This blends RGBA images onto a ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/5324
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d3dbdc78-5223-a3cd-4fe3-5f44688c55ea |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9C5A:171A20:5D0658:7BAC45:6A52FCD6 |
| html-safe-nonce | 3a4d9c7b85ef471e9c66dfac41c759edcb430ade781756ee6f280fb6821c2245 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzVBOjE3MUEyMDo1RDA2NTg6N0JBQzQ1OjZBNTJGQ0Q2IiwidmlzaXRvcl9pZCI6Ijc0NjUzOTMwMTMyOTgyMzI1MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6c607ef6dbcb1ce295933f2bbb8051125e7d0577ef2c6245fc27f41534228858 |
| hovercard-subject-tag | pull_request:48776506 |
| 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/matplotlib/matplotlib/pull/5324/files |
| twitter:image | https://avatars.githubusercontent.com/u/38294?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/38294?s=400&v=4 |
| og:image:alt | Saving a JPEG with an alpha channel doesn't look right -- I think pillow just removes the alpha channel altogether and uses the rest of the RGB values as-is. This blends RGBA images onto a whit... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width