1. Imagegeneration for Kindle 4

    Task: Generate images displayable on a Kindle 4.

    Example code using Python and Pillow:

    # -*- coding: utf-8 -*-
    from PIL import Image, ImageDraw, ImageFont
    
    image = Image.new("P", (600,800), 255)
    
    # generate a 8 bit greyscale palette
    def palette():
      for i in range(0,256):
        yield i;yield i; yield i
    
    image ...
    Tagged as : linux kindle

Page 1 / 1