image type name
Returns the type of image name (the value of the type argument to image create when the image was created).
See also:
Tk syntax help - Category Command - Category Introspection