When generating images in Python, most developers load the entire image into memory before saving it to disk. That works well for small images. But what happens when you start working with images that are thousands of pixels wide and tall?
Source: [Dev.to](https://dev.to/divyanshusinha136/building-massive-gradient-images-without-running-out-of-memory-using-pyaitkclse-3kh8)