Open mgbee8 opened 9 months ago
Hi @mgbee8,
dzsave
writes the tiles to the memory target as a zip file, so you'll need to use some other python lib to parse the zip and extract the JPEGs.
Alternatively, you can just loop over the image and crop out tiles yourself. Perhaps:
image = pyvips.Image.new_from_file(file_name, access="sequential")
tiles = [image.crop(x, y, 512, 512)
for y in range(0, image.height, 512)
for x in range(0, image.width, 512)]
When i try to use image.dzsave_target it is returning a None type not a list[] as documents state
type of tiles is NoneType not list[] as doc states
How can I get a list of the tiled images to iterate over?