Previous section To contents

12.27 Image.XFace

DESCRIPTION

NOTE
This module uses libgmp.

METHOD
Image.XFace.decode

SYNTAX
object decode(string data)
object decode(string data,  mapping options)

DESCRIPTION
Decodes an X-Face image.

The options argument may be a mapping containing zero options.

METHOD
Image.XFace.decode_header

SYNTAX
object decode_header(string data)
object decode_header(string data,  mapping options)

DESCRIPTION
Decodes an X-Face image header.

"xsize":int
"ysize":int
size of image
"type":"image/x-xface"
file type information

The options argument may be a mapping containing zero options.

NOTE
There aint no such thing as a X-Face image header. This stuff tells the characteristics of an X-Face image.

METHOD
Image.XFace.encode

SYNTAX
string encode(object img)
string encode(object img,  mapping options)

DESCRIPTION
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.


Previous section To contents