Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-118271: Support more options for reading/writing images in Tkinter #118273

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Apr 25, 2024

  • 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
33 checks passed
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant