{"action":"opened","issue":{"url":"https://api.github.com/repos/chafey/cornerstoneWADOImageLoader/issues/37","repository_url":"https://api.github.com/repos/chafey/cornerstoneWADOImageLoader","labels_url":"https://api.github.com/repos/chafey/cornerstoneWADOImageLoader/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/chafey/cornerstoneWADOImageLoader/issues/37/comments","events_url":"https://api.github.com/repos/chafey/cornerstoneWADOImageLoader/issues/37/events","html_url":"https://github.com/chafey/cornerstoneWADOImageLoader/issues/37","id":148130885,"number":37,"title":"Replace jpx by libopenjpeg for JPEG 2000 decoding","user":{"login":"jpambrun","id":718384,"avatar_url":"https://avatars.githubusercontent.com/u/718384?v=3","gravatar_id":"","url":"https://api.github.com/users/jpambrun","html_url":"https://github.com/jpambrun","followers_url":"https://api.github.com/users/jpambrun/followers","following_url":"https://api.github.com/users/jpambrun/following{/other_user}","gists_url":"https://api.github.com/users/jpambrun/gists{/gist_id}","starred_url":"https://api.github.com/users/jpambrun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpambrun/subscriptions","organizations_url":"https://api.github.com/users/jpambrun/orgs","repos_url":"https://api.github.com/users/jpambrun/repos","events_url":"https://api.github.com/users/jpambrun/events{/privacy}","received_events_url":"https://api.github.com/users/jpambrun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-13T17:39:35Z","updated_at":"2016-04-13T17:39:35Z","closed_at":null,"body":"I'm not doing submitting a pull request because I don't have a setup to test it correctly and I don't really know how you want to organize the source code.\r\n\r\nThe latest minified release is here:\r\n\r\nhttps://github.com/jpambrun/openjpeg/releases\r\n\r\nThe interface is somewhat similar to jpx:\r\n\r\n``` javascript\r\nimage = Module.opj_decode(compressedPixelData);\r\nvar j2kWidth = image.sx;\r\nvar j2kHeight = image.sy;\r\nvar pixelData = new Int16Array(image.pixelData);\r\n```\r\n\r\nimage.pixelData is actually an Int32Array and if the image is in color, the pixels are interleaved as follows : RGBRGBRGB... \r\n"}}