{"action":"created","issue":{"url":"https://api.github.com/repos/openslide/openslide/issues/165","labels_url":"https://api.github.com/repos/openslide/openslide/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/openslide/openslide/issues/165/comments","events_url":"https://api.github.com/repos/openslide/openslide/issues/165/events","html_url":"https://github.com/openslide/openslide/issues/165","id":107601557,"number":165,"title":"VMS .opt file parsed incorrectly when there are multiple Z-layers","user":{"login":"tseytlin","id":2431342,"avatar_url":"https://avatars.githubusercontent.com/u/2431342?v=3","gravatar_id":"","url":"https://api.github.com/users/tseytlin","html_url":"https://github.com/tseytlin","followers_url":"https://api.github.com/users/tseytlin/followers","following_url":"https://api.github.com/users/tseytlin/following{/other_user}","gists_url":"https://api.github.com/users/tseytlin/gists{/gist_id}","starred_url":"https://api.github.com/users/tseytlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tseytlin/subscriptions","organizations_url":"https://api.github.com/users/tseytlin/orgs","repos_url":"https://api.github.com/users/tseytlin/repos","events_url":"https://api.github.com/users/tseytlin/events{/privacy}","received_events_url":"https://api.github.com/users/tseytlin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openslide/openslide/labels/defect","name":"defect","color":"e10c02"},{"url":"https://api.github.com/repos/openslide/openslide/labels/format-vms","name":"format-vms","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-09-21T21:25:37Z","updated_at":"2015-12-08T04:12:19Z","closed_at":null,"body":"Some VMS files cannot open if .opt file is there.\r\n\r\nOpenSlide.createThumnailImage() and OpenSlide.paintRegion() methods (in Java bindings) both \r\nreturn\r\n java.io.IOException: Restart marker not found at recorded position 1675538\r\n\r\nmeta information is returned though.\r\nAfter reading about VMS on openslide site, I tried renaming the .opt file and the .VMS files opens successfully. \r\n\r\nPerhaps OpenSlide library should ignore the .opt file if it can't successfully use it.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openslide/openslide/issues/comments/162754504","html_url":"https://github.com/openslide/openslide/issues/165#issuecomment-162754504","issue_url":"https://api.github.com/repos/openslide/openslide/issues/165","id":162754504,"user":{"login":"bgilbert","id":361374,"avatar_url":"https://avatars.githubusercontent.com/u/361374?v=3","gravatar_id":"","url":"https://api.github.com/users/bgilbert","html_url":"https://github.com/bgilbert","followers_url":"https://api.github.com/users/bgilbert/followers","following_url":"https://api.github.com/users/bgilbert/following{/other_user}","gists_url":"https://api.github.com/users/bgilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/bgilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgilbert/subscriptions","organizations_url":"https://api.github.com/users/bgilbert/orgs","repos_url":"https://api.github.com/users/bgilbert/repos","events_url":"https://api.github.com/users/bgilbert/events{/privacy}","received_events_url":"https://api.github.com/users/bgilbert/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T04:12:19Z","updated_at":"2015-12-08T04:12:19Z","body":"I did replicate the issue with the slide you sent me.  The slide has three Z-layers (`NoLayers=3` in the `.vms` file), which causes OpenSlide to parse the `.opt` file incorrectly.  To figure out how to correctly read the `.opt` file in this case, I need to see a slide which has multiple JPEGs per layer -- that is, a slide larger than 65000 pixels on one or both axes -- and which also has multiple Z-layers.  Can you provide such a slide?  I don't have access to any slide scanners myself."}}