V5 SVG import/export

Next
 From:  Phiro
10654.1 
Hi Michael,

On the SVG import/export, I made new tests with other machines and the problem with X/Y proportionality size don't appear.
All is right.
The size is different but proportions are OK.

I think it was a system problem with a VM and its video configuration which was extended to its host window.

Thanks for your time and help

P.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10654.2 In reply to 10654.1 
Hi Phiro, no problem thanks for testing it.

If you run into any other problems with it please let me know.

Thanks, - Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10654.3 
For this post, keep in mind that I may not know what I am talking about, at least in part. :-)

This site has SVG files, and PNG previews of SVG files:
https://commons.wikimedia.org/wiki/Category:12_crossing_number_knots_and_links

With limited testing, MoI V5 beta is able to open some of them just fine, but at 500+ units size. e.g., the first and forth ones.
Similar large size result in Rhino 7.

Some only partially open. e.g. 4intersecting-rounded-rectangles.svg. (Nothing opened in Rhino 7.)
It is nice to have the ability to open SVG in MoI.
I tried to open them with Aspire 10.5, with similar full, or partial opening. (No idea of the sizes in Aspire.)


Another problem:
Windows 10 file explorer does NOT file (thumbnail) preview the SVG files, just shows them as a Microsoft edge icon.
(Or google icon, depending upon default browser (???))
(Edge or Chrome can open the SVG "thumbnail".)
There was s a Windows 10 "SVG Explorer extension" program. (UnTested, and never installed.) (Or use PowerToys)
(MoI does not have a thumbnail viewer either (???))

For the past few days, I have been running Windows 11, without problems.
Windows 11 explorer also does NOT preview the SVG files. PowerToys v0.58.0 is said to enable file preview of SVG files.
(So far, PowerToys has not been installed. Recall some possible Virus vulnerability ???

https://www.kapilarya.com/show-svg-file-preview-in-windows-11
https://www.youtube.com/watch?v=Ll4w8YPRvoI
https://www.thewindowsclub.com/enable-svg-thumbnails-in-explorer-in-windows

"Windows 11 supports thumbnail preview for common image file formats, except SVG files. If you don’t know, it’s an XML-based image format for 2D graphics with support for animation and interactivity. From: https://geekermag.com/enable-thumbnail-preview-for-svg-files-in-windows-11/

https://docs.microsoft.com/en-us/windows/powertoys/file-explorer

Where to get PowerToys:
https://docs.microsoft.com/en-us/windows/powertoys/install
https://github.com/microsoft/PowerToys/releases/tag/v0.58.0

Just downloaded and installed powertoys.
In File Explorer > View > enabled View pane.
Flipped a bunch of switches in powertoys, rebooted, had to flip switches again...
File Explorer Viewer sidepane working. Thumbnails still not working, for directory on harddrive.

The File Explorer Viewer sidepane MIGHT not work with onedrive... (It is working for me.)
Thumbnails still not working...

- Brian

SVG, STL, gCode, PDF, and some developer languages, all are said to have sidepane viewers...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10654.4 
SVG thumbnail preview does not work in Windows 11

https://github.com/microsoft/PowerToys/issues/15888

Oh well...

- Brian

The file explorer sidepane DOES show the thumbnails, but each svg icon must be clicked to see the thumbnail in the sidepane.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10654.5 In reply to 10654.3 
Hi Brian, thanks for testing the SVG import!


> With limited testing, MoI V5 beta is able to open some of them just fine, but at 500+ units size. e.g., the first and forth ones.
> Similar large size result in Rhino 7.

This happens because those SVG files are using pixel units in them. The first one has a pixel size of 650 x 600 for example so
it has coordinate values in it ranging from 0 to 600 and those coordinates just come across directly into Moi.

I don't really know of any better way to handle pixel units, it doesn't really map that great into CAD.


> Some only partially open. e.g. 4intersecting-rounded-rectangles.svg. (Nothing opened in Rhino 7.)
> It is nice to have the ability to open SVG in MoI.

The 4intersecting-rounded-rectangles.svg file is using an SVG instancing mechanism with <defs> and <use> tags, not just
all plain geometry. At the moment those things are not supported fully by the MoI importer.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
10654.6 In reply to 10654.3 
hi Brian, so actually almost all of the SVG files on that knots wikipedia page are using the <defs> and <use> instancing mechanism in SVG. So that's why they are not coming over with all the pieces quite right.

Those will be some good test cases when possibly trying to support that part of SVG later.

Thanks,
- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All