{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/1883","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/1883/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/1883/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/1883/events","html_url":"https://github.com/kangax/fabric.js/issues/1883","id":51115966,"number":1883,"title":"Exporting SVG defect - GlobalcompoisteOperation related","user":{"login":"asturur","id":1194048,"avatar_url":"https://avatars.githubusercontent.com/u/1194048?v=3","gravatar_id":"","url":"https://api.github.com/users/asturur","html_url":"https://github.com/asturur","followers_url":"https://api.github.com/users/asturur/followers","following_url":"https://api.github.com/users/asturur/following{/other_user}","gists_url":"https://api.github.com/users/asturur/gists{/gist_id}","starred_url":"https://api.github.com/users/asturur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asturur/subscriptions","organizations_url":"https://api.github.com/users/asturur/orgs","repos_url":"https://api.github.com/users/asturur/repos","events_url":"https://api.github.com/users/asturur/events{/privacy}","received_events_url":"https://api.github.com/users/asturur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kangax/fabric.js/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/kangax/fabric.js/milestones/4","html_url":"https://github.com/kangax/fabric.js/milestones/1.5.1","labels_url":"https://api.github.com/repos/kangax/fabric.js/milestones/4/labels","id":1067880,"number":4,"title":"1.5.1","description":"","creator":{"login":"kangax","id":383,"avatar_url":"https://avatars.githubusercontent.com/u/383?v=3","gravatar_id":"","url":"https://api.github.com/users/kangax","html_url":"https://github.com/kangax","followers_url":"https://api.github.com/users/kangax/followers","following_url":"https://api.github.com/users/kangax/following{/other_user}","gists_url":"https://api.github.com/users/kangax/gists{/gist_id}","starred_url":"https://api.github.com/users/kangax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kangax/subscriptions","organizations_url":"https://api.github.com/users/kangax/orgs","repos_url":"https://api.github.com/users/kangax/repos","events_url":"https://api.github.com/users/kangax/events{/privacy}","received_events_url":"https://api.github.com/users/kangax/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":8,"state":"open","created_at":"2015-04-14T23:42:56Z","updated_at":"2015-05-19T10:42:18Z","due_on":"2015-05-30T22:00:00Z","closed_at":null},"comments":4,"created_at":"2014-12-05T16:15:02Z","updated_at":"2015-05-19T11:05:59Z","closed_at":null,"body":"This code in kitchensink produce the following image:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1194048/5318737/cf035ff0-7ca2-11e4-88a5-8738b083a6f6.png)\r\n\r\nBut svg export is all black.\r\n\r\n```\r\n    // clear canvas\r\n    canvas.clear();\r\n    \r\n        var text = new fabric.Text('AAAAA', {\r\n          originX: 'center',\r\n          originY: 'center',\r\n          left:30,\r\n          top: 30,\r\n          fill: 'rgba(0,0,0,1)',\r\n          centeredRotation: true,\r\n          angle: 20,\r\n          fontSize: 100,\r\n        });\r\n    canvas.add(text);\r\n    fabric.Image.fromURL('http://i.stack.imgur.com/2FF08.png', function(oImg) { \r\n      oImg.globalCompositeOperation = 'source-atop';\r\n      oImg.width = canvas.width;\r\n      oImg.heigth = canvas.height;\r\n      canvas.add(oImg);\r\n      var rect = new fabric.Rect({\r\n        width: canvas.width,\r\n        height: canvas.height,\r\n        globalCompositeOperation: 'destination-over',\r\n        fill: 'black'\r\n      });\r\n      canvas.add(rect);   \r\n    });\r\n```\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/6796275-exporting-svg-defect-globalcompoisteoperation-related?utm_campaign=plugin&utm_content=tracker%2F23217&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F23217&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/103441185","html_url":"https://github.com/kangax/fabric.js/issues/1883#issuecomment-103441185","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/1883","id":103441185,"user":{"login":"asturur","id":1194048,"avatar_url":"https://avatars.githubusercontent.com/u/1194048?v=3","gravatar_id":"","url":"https://api.github.com/users/asturur","html_url":"https://github.com/asturur","followers_url":"https://api.github.com/users/asturur/followers","following_url":"https://api.github.com/users/asturur/following{/other_user}","gists_url":"https://api.github.com/users/asturur/gists{/gist_id}","starred_url":"https://api.github.com/users/asturur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asturur/subscriptions","organizations_url":"https://api.github.com/users/asturur/orgs","repos_url":"https://api.github.com/users/asturur/repos","events_url":"https://api.github.com/users/asturur/events{/privacy}","received_events_url":"https://api.github.com/users/asturur/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T11:05:59Z","updated_at":"2015-05-19T11:05:59Z","body":"i would remove from 1.5.1 milestone.\r\nIs not gonna be easy.\r\nSpecs are not clear, requires general toSVG export changes , influence shadows heavily.\r\nImpossible to test with anything that internet explorer ( at least for me i do not own an illustrator copy ).\r\nI would delay it.\r\n\r\n@kangax if you agree remove label."}}