Seb_T Posted August 30, 2016 Share Posted August 30, 2016 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 comment Share on other sites More sharing options...
justsomeguy Posted August 30, 2016 Share Posted August 30, 2016 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? Link to comment Share on other sites More sharing options...
Seb_T Posted September 9, 2016 Author Share Posted September 9, 2016 Well, I guess you could parse the tiff header, this info should be there no? Link to comment Share on other sites More sharing options...
justsomeguy Posted September 9, 2016 Share Posted September 9, 2016 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 comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now