You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bitmap class - new createjs.Bitmap - SVG not loading at viewbox size #1070
changed the title [-]Bitmap class - new createjs.Bitmap - Issue with SVG dimensions[/-][+]Bitmap class - new createjs.Bitmap - SVG not loading at viewbox size[/+]on Apr 9, 2022
@prbrowne sorry for the delayed response here. I don't know any more than what Lanny replied in the StackOverflow link but I do know that in ZIM we implemented two ways to handle SVG - one is a function that converts the SVG to an image and works pretty well flawlessly as far as we can tell. The other is to convert SVG to ZIM shapes and that has the advantage of making them editable. https://zimjs.com/svg/
Activity
[-]Bitmap class - new createjs.Bitmap - Issue with SVG dimensions[/-][+]Bitmap class - new createjs.Bitmap - SVG not loading at viewbox size[/+]danzen commentedon Sep 12, 2022
@prbrowne sorry for the delayed response here. I don't know any more than what Lanny replied in the StackOverflow link but I do know that in ZIM we implemented two ways to handle SVG - one is a function that converts the SVG to an image and works pretty well flawlessly as far as we can tell. The other is to convert SVG to ZIM shapes and that has the advantage of making them editable. https://zimjs.com/svg/
If you look at the ZIM code for SVGToBitmap https://zimjs.com/code.php?view=83.27&title=svgToBitmap&line=74632 you can see the code that we used. You may be able to adapt it. Or consider using ZIM. Cheers.