Several options of the Tk photo image subcommands have no corresponding parameter in the :class:tkinter.PhotoImage methods and are currently reachable only through tk.call().
- The
-formatoption ofput(since Tk 8.6) specifies the format of the image data. - The
-metadataoption ofput,read,writeanddata(new in Tk 9.0) passes a metadata dictionary to the image format driver. - The
-withalphaoption ofget(new in Tk 9.0) returns the alpha value of the pixel in addition to its color.
I propose to add the corresponding format and metadata parameters to put, the metadata parameter to read, write and data, and the withalpha parameter to get.