{"action":"created","issue":{"url":"https://api.github.com/repos/dcjones/Compose.jl/issues/141","labels_url":"https://api.github.com/repos/dcjones/Compose.jl/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/dcjones/Compose.jl/issues/141/comments","events_url":"https://api.github.com/repos/dcjones/Compose.jl/issues/141/events","html_url":"https://github.com/dcjones/Compose.jl/pull/141","id":103915997,"number":141,"title":"WIP: image and bitmap implementation","user":{"login":"lobingera","id":5199059,"avatar_url":"https://avatars.githubusercontent.com/u/5199059?v=3","gravatar_id":"","url":"https://api.github.com/users/lobingera","html_url":"https://github.com/lobingera","followers_url":"https://api.github.com/users/lobingera/followers","following_url":"https://api.github.com/users/lobingera/following{/other_user}","gists_url":"https://api.github.com/users/lobingera/gists{/gist_id}","starred_url":"https://api.github.com/users/lobingera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lobingera/subscriptions","organizations_url":"https://api.github.com/users/lobingera/orgs","repos_url":"https://api.github.com/users/lobingera/repos","events_url":"https://api.github.com/users/lobingera/events{/privacy}","received_events_url":"https://api.github.com/users/lobingera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-30T10:03:36Z","updated_at":"2016-01-14T22:16:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dcjones/Compose.jl/pulls/141","html_url":"https://github.com/dcjones/Compose.jl/pull/141","diff_url":"https://github.com/dcjones/Compose.jl/pull/141.diff","patch_url":"https://github.com/dcjones/Compose.jl/pull/141.patch"},"body":"Started in dcjones/Compose.jl#140 and (long time ago) dcjones/Gadfly.jl#288 this should create a basis for both an \r\n* image implementation (see thread)  -> insert an image into a Compose context\r\n* bitmap implementation -> insert a matrix of colored pixels into a Compose context.\r\n(note: the definition was and is still reverse in the code ... but i use the 'new' here).\r\n\r\nThere are two implementations of backends touched here, SVG and the cairo based backends for PNG, PDF, PS and CAIROSURFACE (which can be used to render to native on-screen windows).\r\n\r\nTwo primitives and and two backends create 4 cases\r\n\r\n1) SVG/image: was and is implemented, should be working (at least the SVG spec claims) for png, jpeg and svg\r\n2) Cairo/image: is not implemented, would need at least a png to cairosurface read function. Available for files, but not for literal strings.-> work on cairo needed.\r\n3) SVG/bitmap: is demoed here, the bitmap is converted via Cairo to png and inserted into svg.\r\n4) Cairo/bitmap: works as expected.\r\n\r\nin example/bitmap_image.jl\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dcjones/Compose.jl/issues/comments/171799053","html_url":"https://github.com/dcjones/Compose.jl/pull/141#issuecomment-171799053","issue_url":"https://api.github.com/repos/dcjones/Compose.jl/issues/141","id":171799053,"user":{"login":"Sacha0","id":5799177,"avatar_url":"https://avatars.githubusercontent.com/u/5799177?v=3","gravatar_id":"","url":"https://api.github.com/users/Sacha0","html_url":"https://github.com/Sacha0","followers_url":"https://api.github.com/users/Sacha0/followers","following_url":"https://api.github.com/users/Sacha0/following{/other_user}","gists_url":"https://api.github.com/users/Sacha0/gists{/gist_id}","starred_url":"https://api.github.com/users/Sacha0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sacha0/subscriptions","organizations_url":"https://api.github.com/users/Sacha0/orgs","repos_url":"https://api.github.com/users/Sacha0/repos","events_url":"https://api.github.com/users/Sacha0/events{/privacy}","received_events_url":"https://api.github.com/users/Sacha0/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T22:16:06Z","updated_at":"2016-01-14T22:16:06Z","body":"> Rendering of bitmap in .svg is unclear\r\n\r\nAre low resolution embedded bitmaps common? Is this issue significant outside of that case? Best!"}}