pybot.minitel.image
¶
This modules provides tools for loading and converting images to Videotex format.
Based on phooky’s Minitel code (https://github.com/phooky/Minitel)
Warning
It depends on the availability of PIL. If not installed, the class will be replaced by a fake one.
-
class
pybot.minitel.image.
VideotexImage
(image)[source]¶ Bases:
object
Image converter class.
Parameters: image ( PIL.image
) – the image to be converted-
to_videotex
(w=80, h=72)[source]¶ Returns a list of strings, one for each line of characters in the converted image.
The width and height are specified in sub-pixels, and are always rounded up to an even number (for x) or a multiple of 3 (for y).
Parameters: Returns: the Videotex sequence reproducing the image
Return type: list[str]
-