I have 360000 images of 800x600 pixel size. I need to stitch with overlap all these images to create a full image that can be zoomed in to view details. How do I make a .dzi image from these base tiles using pyvips library?
I tried to create a jpeg image before coverting it to .dzi. Which is not something that i want. I want to build .dzi image from the base tile image.
the following is what i did until now:
import pyvips
import glob
#creating image array
jpeg_images = glob.glob('*.jpg')
array_images= []
for i in jpeg_images:
tile = pyvips.Image.new_from_file(i, access="sequential")
array_images.append(tile)
#Join them, across is how many pictures there be next to each other
out = pyvips.Image.arrayjoin(array_images,
across=len(jpeg_images)/2)
#write it out to file
out.write_to_file('big_dummy.jpg', Q=95)
#read the image
source_image = pyvips.Image.new_from_file(r'D:\Image
processing\merge_images_python\dummy_images3\big_dummy.joeg')
#create the dzi image
source_image.dzsave('pyramid_new')