◐ Shell
clean mode source ↗

gh-118271: Support more options for reading/writing images in Tkinter by serhiy-storchaka · Pull Request #118273 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented

Apr 25, 2024

edited by github-actions Bot

Loading

Copy link Copy Markdown

Member

  • Add PhotoImage.read() to read an image from a file.
  • Add PhotoImage.data() to get the image data.
  • Add background and grayscale parameters to PhotoImage.write().

📚 Documentation preview 📚: https://cpython-previews--118273.org.readthedocs.build/

…kinter

* Add PhotoImage.read() to read an image from a file.
* Add PhotoImage.data() to get the image data.
* Add background and grayscale parameters to PhotoImage.write().

@serhiy-storchaka serhiy-storchaka force-pushed the tkinter-photoimage-read-data branch from 432a235 to 455252e Compare

April 25, 2024 11:42

@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash)

May 6, 2024 14:38

@serhiy-storchaka serhiy-storchaka merged commit 709ca90 into python:main

May 6, 2024

SonicField pushed a commit to SonicField/cpython that referenced this pull request

May 8, 2024
…kinter (pythonGH-118273)

* Add PhotoImage.read() to read an image from a file.
* Add PhotoImage.data() to get the image data.
* Add background and grayscale parameters to PhotoImage.write().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@terryjreedy terryjreedy Awaiting requested review from terryjreedy

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@serhiy-storchaka