Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to rasterize composite transforms #85

Open
tqtran7 opened this issue Jan 12, 2015 · 3 comments
Open

Fail to rasterize composite transforms #85

tqtran7 opened this issue Jan 12, 2015 · 3 comments

Comments

@tqtran7
Copy link

tqtran7 commented Jan 12, 2015

Hello, just wanted to say that you've done great work here! While using it to rasterize my game world onto the canvas, I noticed that composite transforms does not work. I have a link to jsfiddle below to show the example. My goal is to be able to bake this world and save it as an image for performance.

http://jsfiddle.net/E8fb2/203/

@cburgmer
Copy link
Owner

Thanks for the feedback, and interesting find. Actually the demo looks good to me in Firefox, it seems to be an issue in Chrome & Safari (the latter not showing anything at all when adding the -webkit- vendor prefix).

The current bleeding edge version will also return the internal SVG representation when executing

rasterizeHTML.drawHTML(html, canvas).then(function (result) {console.log(result);});

This might be of help if you want to dig into the details. It might just be an issue in the Blink engine though - a minimum SVG test case might help debugging.

@tqtran7
Copy link
Author

tqtran7 commented Jan 13, 2015

Also tested it on IE10, surprisingly only the incorrect rasterized image showed up. I have submitted a ticked to Chromium Blink, hopefully they will resolve it. I can just stick with using Firefox for capturing images for now. Thanks!

@domq
Copy link

domq commented Jan 17, 2023

This can probably be closed now, as Firefox and Chrome appear to work the same way (updated fiddle at http://jsfiddle.net/dom_q/531cab9g/ )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants