Meta seems to have money to burn, so they’ll gladly pay for the disk space to host your uncompressible images. Here’s a Python script to generate them!
generate.py
from PIL import Image
from tqdm import tqdm
import numpy as np
import sys
import os
number_of_images = 1000
width = 2048
height = 1024
for filename in tqdm(range(number_of_images)):
image = Image.fromarray(np.random.randint(0, 256, (height, width, 3), dtype=np.uint8))
image.save(str(filename) + ".png")
requirements.txt
pillow
tqdm
numpy
You must log in or register to comment.