os dejo un script para generar un icono aleatorio como hizo SadFud. Es necesario instalar PIL (podéis usar pip install pillow).
#!/usr/bin/env python
#original: https://www.daniweb.com/programming/software-development/threads/488949/looking-for-random-image-generator-pil-script
from PIL import Image
import random, argparse
def create_icon(output, w, h):
testImage = Image.new("RGB", (w, h), (255,255,255))
pixel = testImage.load()
for x in range(w):
for y in range(h):
red = random.randrange(0,255)
blue = random.randrange(0,255)
green = random.randrange(0,255)
pixel[x,y]=(red,blue,green)
testImage.save(output)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='create a random PNG image')
parser.add_argument('w', type=int, help='width')
parser.add_argument('h', type=int, help='height')
parser.add_argument('o', type=str, help='output file path')
args = parser.parse_args()
create_icon(args.o, args.w, args.h)
Uso:
python random_icon.py width height output
python random_icon.py 64 64 rnd.ico