Jump to content

Javascript remote image viewing

Recommended Posts

Hello, I would like to implement a Javascript applet to display a given frame of a multi-frame TIFF image on a webpage. The multi-frame TIFF image will be stored on a public Gdrive folder and I would like the applet not to download the whole file but only the specific frame to be displayed (for performance since the file will be very large). Is that enabled by the Gdrive API (which functions should be used?) and what Javascript libraries would be the most appropriate for the task?

Link to post
Share on other sites
  • 2 weeks later...

I don't know what the structure of TIFF files is, I'm thinking about the logistics of the file transfer. How do you plan to tell the server to only send you the bytes that correspond to the TIFF header in the file? You can send a range header to the server, but is the TIFF header always a specific size at a specific offset in the file? And, if the server doesn't support the range header, it's going to send the entire file anyway.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...