Jump to content
Seb_T

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?

Share this post


Link to post
Share on other sites

I don't believe it's possible to only download the correct part of the file. How would it know which part to download, where it begins and ends?

Share this post


Link to post
Share on other sites

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.

Share this post


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.

Guest
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.

Loading...

×
×
  • Create New...