What I'm actually doing is saving images in a tiff file, using imageio.mimwrite()
. But in my script, I open and close the file several times, so it erases existing images before saving news images. I want to keep existing images in the tiff file, and just add new images without erasing the previous ones. I did not find anything in the documentation which can helps me.
I'm actually using this :
imageio.mimwrite("example.tiff", image, format=".tiff")
image
is an array which contains arrays of integers, each array representing an image.
This code opens example.tiff
, erase existing images (if they exist), and write news images. But I want to add like open("file.txt", "a")
does.