issue creating 120k x 60k image using pyvips.Image.insert: process is getting killed when RAM is full
I have the corordinates of all the individual tiles in a canvas. I tried to create the whole canvas using pyvips.Image.insert. When I looked at the RAM usage of the process, I see that it keeps on growing until it fills up entire RAM and then the process is getting killed. After going through the documentation, I found that mosaic, arrayjoin, composite methods might be the possible solution. However, I am not able to understand the underlying (conceptual) differences between them. Kindly explain these methods with some example and some use cases, if possible.
Is it possible to use pyvips with mmap to create a large file on disk and then use insert method to generate the large image?
Not sure if I am doing something wrong:
import pyvips
source = pyvips.Source.new_from_file("image.jpg")
Traceback (most recent call last):
File "fd1.py", line 34, in
import pyvips
image = pyvips.Image.new_temp_file('.tif')
Traceback (most recent call last):
File "fd1.py", line 35, in
ubuntu 18.04, tested with python 3.8 and 3.11. working on macOS.
Hello, sorry for the delay in responding, I'll post a demo program that does this some time this weekend.