| Extracted from Pike v7.8 release 866 at 2016-04-05.

[Top]
Image
Image.AVS

# Method Image.AVS.encode()

Method encode

  `object decode(string data)`
  `mapping _decode(string data)`
  `string encode(object image)`

Description

  Handle encoding and decoding of AVS-X images. AVS is rather trivial, and not really useful, but:

  An AVS file is a raw (uncompressed) 24 bit image file with alpha. The alpha channel is 8 bit, and there is no separate alpha for r, g and b.