{"action":"created","issue":{"url":"https://api.github.com/repos/photopea/UTIF.js/issues/31","repository_url":"https://api.github.com/repos/photopea/UTIF.js","labels_url":"https://api.github.com/repos/photopea/UTIF.js/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/photopea/UTIF.js/issues/31/comments","events_url":"https://api.github.com/repos/photopea/UTIF.js/issues/31/events","html_url":"https://github.com/photopea/UTIF.js/issues/31","id":317209066,"number":31,"title":"Support for BigTIFF format for data larger than 4GB?","user":{"login":"oeway","id":478667,"avatar_url":"https://avatars2.githubusercontent.com/u/478667?v=4","gravatar_id":"","url":"https://api.github.com/users/oeway","html_url":"https://github.com/oeway","followers_url":"https://api.github.com/users/oeway/followers","following_url":"https://api.github.com/users/oeway/following{/other_user}","gists_url":"https://api.github.com/users/oeway/gists{/gist_id}","starred_url":"https://api.github.com/users/oeway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oeway/subscriptions","organizations_url":"https://api.github.com/users/oeway/orgs","repos_url":"https://api.github.com/users/oeway/repos","events_url":"https://api.github.com/users/oeway/events{/privacy}","received_events_url":"https://api.github.com/users/oeway/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-24T12:46:28Z","updated_at":"2018-04-24T15:29:42Z","closed_at":null,"author_association":"NONE","body":"I am thinking about the feasibility of using bigTIFF image format for very large image sequence, and I would like to have your opinion on the following aspects:\r\n\r\n1. add big tiff support according to [the bigTIFF standard](https://www.awaresystems.be/imaging/tiff/bigtiff.html). Would this be possible? Even better thing is to have the \"[OME-XML metadata](https://docs.openmicroscopy.org/ome-model/5.6.1/ome-tiff/file-structure.html)\" supported, but that should not be a problem.\r\n\r\n2. we need to streaming data from the disk rather than try to load the entire file into memory. After a quick investigation on this library, I think I need to first read the ifds with UTIF.decode, then, when the user request a certain frame, the decode the requested frame on demand by reading the requested block of file from the disk, and decode it with UTIF.decodeImages. The question is, would it be possible to determine the number of frame first without loading the whole file or searching through the whole file? Is it feasible for the current library to do that?\r\n\r\nA related question is that, currently, I tried to use Photopea to load a big file(<4GB) with thousands of tiff frames, I think it tries to load everything to the memory, so the interface got stucked and crash. That maybe not a problem for Photopea and it may out of the scope of Photopea itself, but my question, would it possible for Photopea to mantain a \"virtual file\" which stays in the disk and only access it on demand?\r\n\r\nBTW, Thanks for nice work, I like PhotoPea a lot. \r\n"},"comment":{"url":"https://api.github.com/repos/photopea/UTIF.js/issues/comments/383975678","html_url":"https://github.com/photopea/UTIF.js/issues/31#issuecomment-383975678","issue_url":"https://api.github.com/repos/photopea/UTIF.js/issues/31","id":383975678,"user":{"login":"photopea","id":15955558,"avatar_url":"https://avatars1.githubusercontent.com/u/15955558?v=4","gravatar_id":"","url":"https://api.github.com/users/photopea","html_url":"https://github.com/photopea","followers_url":"https://api.github.com/users/photopea/followers","following_url":"https://api.github.com/users/photopea/following{/other_user}","gists_url":"https://api.github.com/users/photopea/gists{/gist_id}","starred_url":"https://api.github.com/users/photopea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/photopea/subscriptions","organizations_url":"https://api.github.com/users/photopea/orgs","repos_url":"https://api.github.com/users/photopea/repos","events_url":"https://api.github.com/users/photopea/events{/privacy}","received_events_url":"https://api.github.com/users/photopea/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T15:29:42Z","updated_at":"2018-04-24T15:29:42Z","author_association":"OWNER","body":"I have no experience with working with so large files in Javascript (which do not fit inside RAM). \r\n\r\nWhat about having all TIFFs separate, but put them all into a one ZIP? The user will open a single ZIP file, your program would take a TIFF image from ZIP and process the small file with UTIF.js . So you just need a \"streamed\" ZIP library."}}
{"actor":{"display_login":"photopea"}}