Support more options for reading/writing images in Tkinter · Issue #118271 · python/cpython (original) (raw)

Feature or enhancement

PhotoImage has method write() which writes the image (or its part) to the file. But it lacks methods for two other related subcommand -- read, to read the image from the file, and data, to get the image data. I propose to add methods read() and data().

Also, the write() method can support two new options: background and grayscale.

Linked PRs