pearcetm / GeoTIFFTileSource

Implementation of a TileSource for OpenSeadragon based on GeoTIFF.js, enabling local and remote TIFF files to be viewed without using an image server
MIT License
26 stars 5 forks source link

loading the tiff image tiles into openseadragon viewer #8

Open Rjaat opened 6 months ago

Rjaat commented 6 months ago

I am working on a project which requires to display tiff images using OpenSeadragon. as of now, it was working fine as i was creating the tiles and the image was being displayed properly using these tiles as tiles were being generated in .png or .jpg format. But now, my requirement has changed and i had to create the tiles in .tif format. so far everything is working fine but when it comes to display these tiles (.tif formatted), it throws the error as: [Uncaught Error: Sorry, we don't support TIF-based Deep Zoom Images].

Help me with, how can i display these .tif formatted tiles using OpenSeadragon. also let me know if there is any opensource alternative to OpenSeadragon which can fulfill the above mentioned requirements.

Also let me know, this library (GeoTiffTileSource) creates the tiles in which format (i.e. png, jpg or tif)

pearcetm commented 6 months ago

being displayed properly using these tiles as tiles were being generated in .png or .jpg format. But now, my requirement has changed and i had to create the tiles in .tif format

Why has the requirement moved to needing .tif tiles? PNG is lossless, so there's typically no benefit to using .tif instead of png.

Also let me know, this library (GeoTiffTileSource) creates the tiles in which format (i.e. png, jpg or tif)

This library doesn't create the tiles, it just displays them in whatever format the pyramidal TIFF file was created in. Since displaying the tiles is something the browser does natively, it depends on browser support for the particular tile format.