{"action":"created","issue":{"url":"https://api.github.com/repos/threema-ch/threema-web/issues/553","repository_url":"https://api.github.com/repos/threema-ch/threema-web","labels_url":"https://api.github.com/repos/threema-ch/threema-web/issues/553/labels{/name}","comments_url":"https://api.github.com/repos/threema-ch/threema-web/issues/553/comments","events_url":"https://api.github.com/repos/threema-ch/threema-web/issues/553/events","html_url":"https://github.com/threema-ch/threema-web/issues/553","id":348454205,"node_id":"MDU6SXNzdWUzNDg0NTQyMDU=","number":553,"title":"SVG send as black file","user":{"login":"rugk","id":11966684,"node_id":"MDQ6VXNlcjExOTY2Njg0","avatar_url":"https://avatars3.githubusercontent.com/u/11966684?v=4","gravatar_id":"","url":"https://api.github.com/users/rugk","html_url":"https://github.com/rugk","followers_url":"https://api.github.com/users/rugk/followers","following_url":"https://api.github.com/users/rugk/following{/other_user}","gists_url":"https://api.github.com/users/rugk/gists{/gist_id}","starred_url":"https://api.github.com/users/rugk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rugk/subscriptions","organizations_url":"https://api.github.com/users/rugk/orgs","repos_url":"https://api.github.com/users/rugk/repos","events_url":"https://api.github.com/users/rugk/events{/privacy}","received_events_url":"https://api.github.com/users/rugk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-07T19:22:21Z","updated_at":"2018-08-08T07:53:58Z","closed_at":"2018-08-08T07:53:58Z","author_association":"CONTRIBUTOR","body":"## Expected Behavior\r\n<!--- If you're describing a bug, tell us what should happen -->\r\n<!--- If you're suggesting a change/improvement, tell us how it should work -->\r\n\r\nSend SVGs as they are shown in the preview.\r\n\r\n## Current Behavior\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\n\r\nPreview works, but when sent, it actually is just a black image.\r\n\r\n## Possible Solution\r\n<!--- Not obligatory, but suggest a fix/reason for the bug, -->\r\n<!--- or ideas how to implement the addition or change -->\r\n\r\n## Steps to Reproduce (for bugs)\r\n<!--- Provide a screenshot and/or an unambiguous set of steps to reproduce this bug. -->\r\n1. Go to https://de.wikipedia.org/wiki/Datei:Threema.svg\r\n2. Right click -> Copy as image\r\n3. Paste in chat.\r\n4. Send.\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in. -->\r\n<!--- Feel free to remove irrelevant lines. -->\r\n* Threema Web version: Version 2.0.0-gh Grosser Mythen\r\n* Threema App version: beta\r\n* Browser name and version: Firefox 61\r\n* Computer operating system and version: Fedora 28\r\n* Smartphone operating system and version: LineageOS 14.1\r\n"},"comment":{"url":"https://api.github.com/repos/threema-ch/threema-web/issues/comments/411319822","html_url":"https://github.com/threema-ch/threema-web/issues/553#issuecomment-411319822","issue_url":"https://api.github.com/repos/threema-ch/threema-web/issues/553","id":411319822,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTMxOTgyMg==","user":{"login":"dbrgn","id":105168,"node_id":"MDQ6VXNlcjEwNTE2OA==","avatar_url":"https://avatars1.githubusercontent.com/u/105168?v=4","gravatar_id":"","url":"https://api.github.com/users/dbrgn","html_url":"https://github.com/dbrgn","followers_url":"https://api.github.com/users/dbrgn/followers","following_url":"https://api.github.com/users/dbrgn/following{/other_user}","gists_url":"https://api.github.com/users/dbrgn/gists{/gist_id}","starred_url":"https://api.github.com/users/dbrgn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbrgn/subscriptions","organizations_url":"https://api.github.com/users/dbrgn/orgs","repos_url":"https://api.github.com/users/dbrgn/repos","events_url":"https://api.github.com/users/dbrgn/events{/privacy}","received_events_url":"https://api.github.com/users/dbrgn/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T07:53:58Z","updated_at":"2018-08-08T07:53:58Z","author_association":"CONTRIBUTOR","body":"SVG files are not modified in any way before sending, they are simply sent as files. By right clicking you are copying the PNG preview (which contains PNG transparency), so this issue doesn't have anything to do with SVG files.\r\n\r\nThis is not something we can change in Threema Web, since the Threema Protocol sends all images in JPEG format, which doesn't support transparency. When removing the PNG alpha channel, the transparent regions become black.\r\n\r\nWhat we could do is replacing the transparent regions with white. I'll create an internal issue for that. However, if you want to send the image unmodified as PNG, send it as a file."}}
{"actor":{"display_login":"dbrgn"}}