discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

importing "all" of an SVG

K
ken@volksswitch.org
Thu, Jun 1, 2023 9:53 PM

The values of width, height, and viewBox can change from SVG to SVG based the tablet model and the screen resolution of the original screenshot jpeg/png.  As long as the aspect ratio is maintained in the transition from jpeg/png file to the SVG as imported into OpenSCAD, it will work since I then resize it based on the known tablet screen dimensions.  When OpenSCAD ignores edges of the SVG image because they don’t contain colored pixels, what is imported has a different aspect ratio from the original image.

From: Jordan Brown openscad@jordan.maileater.net
Sent: Thursday, June 1, 2023 3:16 PM
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org; ken@volksswitch.org; 'Revar Desmera' revarbat@gmail.com
Subject: Re: [OpenSCAD] Re: importing "all" of an SVG

Do you know the dimensions of the SVG file, or might (e.g.) different users end up using different scales?

The values of width, height, and viewBox can change from SVG to SVG based the tablet model and the screen resolution of the original screenshot jpeg/png. As long as the aspect ratio is maintained in the transition from jpeg/png file to the SVG as imported into OpenSCAD, it will work since I then resize it based on the known tablet screen dimensions. When OpenSCAD ignores edges of the SVG image because they don’t contain colored pixels, what is imported has a different aspect ratio from the original image. From: Jordan Brown <openscad@jordan.maileater.net> Sent: Thursday, June 1, 2023 3:16 PM To: OpenSCAD general discussion Mailing-list <discuss@lists.openscad.org>; ken@volksswitch.org; 'Revar Desmera' <revarbat@gmail.com> Subject: Re: [OpenSCAD] Re: importing "all" of an SVG Do you know the dimensions of the SVG file, or might (e.g.) different users end up using different scales?