| Description: |
Current Tk Image photo documentation for "data" and "put" subcommands:
imageName data ?option value(s) ...?
Returns image <data> in the form of a string.
imageName put <data> ?option value(s) ...?
Sets pixels in imageName to the data specified in <data>.
As written, one now naturally assumes a "binary string" for <data>. But Img support dates from before [binary] support, and the string data is actually base64 encoded. This means that if "-format" option is used, the data are doubly encoded!
Proposed: A documentation change that indicates base64 encoding and reflects the possibility of double encoding and the usefulness of [binary encode/decode base64] in that case.
|