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
How can I make the canvas auto resize when I resize the svg image?
Right now, when I load a svg image using
svgEditor.loadFromString(locale.svg_icon);
the canvas will auto resize to the width and height of the loaded svg image.
When I resize the svg image the canvas will preserve its initial width and height and when I save the image, then I only get the visible part that exist in the canvas width and height, and I want the whole resized svg image.
If you want to ensure everything you have visible is in the saved document, you should go to "Document Properties" and for "Select predefined:", choose "Fit to content".
If you are looking for a feature to automatically do this resizing, I can change this issue label to an enhancement.
To be honest, I would very much appreciate it if you would change the label to "Feature Request" because I really hate messing up with someone else's code, especially when there might be future updates to it.
For now, manually changing the canvas size will have to do though..
Hello!
How can I make the canvas auto resize when I resize the svg image?
Right now, when I load a svg image using
the canvas will auto resize to the width and height of the loaded svg image.
When I resize the svg image the canvas will preserve its initial width and height and when I save the image, then I only get the visible part that exist in the canvas width and height, and I want the whole resized svg image.
Note that I have set:
in svgedit/editor/svgcanvas.js
If I'd have:
and I resize the image and move it outside the canvas, then upon save (if the image is not inside the canvas) I will get an empty image.
Please help
The text was updated successfully, but these errors were encountered: