from PIL import Image, ImageDraw
import random
from pathlib import Path
r = random.Random(27038)
im = Image.frombytes("RGB", (2000,2000), r.randbytes(12000000))
draw = ImageDraw.Draw(im)
draw.rectangle((0,0,1999,70), fill="#1466cc")
draw.rectangle((0,70,70,1999), fill="#ff9900")
draw.rectangle((1700,1700,1950,1950), fill="#ed1970")
draw.text((100,10), "LARGE CLIPBOARD IMAGE 2000 x 2000", fill="white", font_size=50)
out=Path(__file__).with_name("large.png")
im.save(out)
print(out.name, out.stat().st_size, im.size)
