string Image.XFace.encode(object img) string Image.XFace.encode(object img, object mappingoptions)
Encodes an X-Face image.
The img argument must be an image of the dimensions 48 by 48 pixels. All non-black pixels will be considered white.
The options argument may be a mapping containing zero options.