{"action":"created","issue":{"url":"https://api.github.com/repos/imbo/imbo/issues/393","labels_url":"https://api.github.com/repos/imbo/imbo/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/imbo/imbo/issues/393/comments","events_url":"https://api.github.com/repos/imbo/imbo/issues/393/events","html_url":"https://github.com/imbo/imbo/issues/393","id":113828270,"number":393,"title":"`drawPois` does not draw correctly after crop/resize","user":{"login":"rexxars","id":48200,"avatar_url":"https://avatars.githubusercontent.com/u/48200?v=3","gravatar_id":"","url":"https://api.github.com/users/rexxars","html_url":"https://github.com/rexxars","followers_url":"https://api.github.com/users/rexxars/followers","following_url":"https://api.github.com/users/rexxars/following{/other_user}","gists_url":"https://api.github.com/users/rexxars/gists{/gist_id}","starred_url":"https://api.github.com/users/rexxars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexxars/subscriptions","organizations_url":"https://api.github.com/users/rexxars/orgs","repos_url":"https://api.github.com/users/rexxars/repos","events_url":"https://api.github.com/users/rexxars/events{/privacy}","received_events_url":"https://api.github.com/users/rexxars/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/imbo/imbo/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"rexxars","id":48200,"avatar_url":"https://avatars.githubusercontent.com/u/48200?v=3","gravatar_id":"","url":"https://api.github.com/users/rexxars","html_url":"https://github.com/rexxars","followers_url":"https://api.github.com/users/rexxars/followers","following_url":"https://api.github.com/users/rexxars/following{/other_user}","gists_url":"https://api.github.com/users/rexxars/gists{/gist_id}","starred_url":"https://api.github.com/users/rexxars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexxars/subscriptions","organizations_url":"https://api.github.com/users/rexxars/orgs","repos_url":"https://api.github.com/users/rexxars/repos","events_url":"https://api.github.com/users/rexxars/events{/privacy}","received_events_url":"https://api.github.com/users/rexxars/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-10-28T14:04:57Z","updated_at":"2015-11-14T01:41:51Z","closed_at":null,"body":"See #392. Because of coordinates not being correct after cropping/resizing, we're not able to draw the POIs on the correct portion of the image, unless we do it as the first step (eg: before cropping/resizing)."},"comment":{"url":"https://api.github.com/repos/imbo/imbo/issues/comments/156605408","html_url":"https://github.com/imbo/imbo/issues/393#issuecomment-156605408","issue_url":"https://api.github.com/repos/imbo/imbo/issues/393","id":156605408,"user":{"login":"matslindh","id":101525,"avatar_url":"https://avatars.githubusercontent.com/u/101525?v=3","gravatar_id":"","url":"https://api.github.com/users/matslindh","html_url":"https://github.com/matslindh","followers_url":"https://api.github.com/users/matslindh/followers","following_url":"https://api.github.com/users/matslindh/following{/other_user}","gists_url":"https://api.github.com/users/matslindh/gists{/gist_id}","starred_url":"https://api.github.com/users/matslindh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matslindh/subscriptions","organizations_url":"https://api.github.com/users/matslindh/orgs","repos_url":"https://api.github.com/users/matslindh/repos","events_url":"https://api.github.com/users/matslindh/events{/privacy}","received_events_url":"https://api.github.com/users/matslindh/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T01:41:50Z","updated_at":"2015-11-14T01:41:50Z","body":"Solving an issue like this would probably require us to keep a\ntransformation/rescale matrices available that modules could use to\ncalculate their raster position before doing anything to the image. This\nwould mean that Imbo would support a set of operations and that the\ndifferent plugins would change these values (crop would change the world\ndisplay window, rotation would change the rotation matrix, etc.), and these\nwould then be applied in sequence after each plugin had registered their\ntransformation.\n\nThis would match how OpenGL or D3D handles part of their graphics API\ntoday, but would require a change deep into the core of Imbo. I think it'd\nbe better to just document that the poi feature should be as early as\npossible in the set of transformations, and possibly error out if it's\napplied after crop/rotate/etc.\n\nOn Fri, Nov 13, 2015 at 12:22 PM Espen Hovlandsdal <notifications@github.com>\nwrote:\n\n> Note added in 2aaa3fc\n> <https://github.com/imbo/imbo/commit/2aaa3fcf452f79b6c1a9c97f32fd95b964a7749f>.\n> Leaving this open for a while to see if we can come up with some solution\n> for this.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/imbo/imbo/issues/393#issuecomment-156575318>.\n>\n"}}