Sign in to follow this  
Martin Osieka

'Scalable Vector Graphics' FileType Plugin (.SVG, .SVGZ)

Recommended Posts

1) Update to the most recent version of paint.net

2) Ensure you have downloaded the .svg file correctly, and your browser hasn't injected rubbish into the file. ie: open the file in a text editor to ensure it's valid svg markup.

The fix is: change decimal symbol to <.> from <,> in Windows' Regional and Language – Additional settings...
Edited by username1
  • Upvote 1

Share this post


Link to post
Share on other sites

Hello !

I installed the plugin correctly and I have this error :

http://image.noelshack.com/fichiers/2016/27/1467729225-fuuuu.jpg

 

I have Paint.net in English, version 4.0.9 installed,

I saw these messages :

 

 

The fix is: change decimal symbol to <.> from <,> in Windows' Regional and Language – Additional settings...

 

 

 

I'm trying to open SVG files from examples (first post of this thread) with paint.net 4.0.5 and ImSVG.Open.FileType 0.18.00 (everything is installed correctly and PDF filetype plugin from Martin Osieka works great). I'm getting this error:

System.FormatException: Input string was not in a correct format.
   at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
   at ControlExtensions.ImSvg.Meal.EatNumber(Single& number)
   at ControlExtensions.ImSvg.AttributeOpacityInheritE(XmlNode elementNode, List`1 ancestors, String attributeName, Single defaultValue)
   at ControlExtensions.ImSvg.ElementNode(Graphics g, XmlNode elementNode, Int32 depth)
   at ControlExtensions.ImSvg.ElementG(Graphics g, XmlNode elementNode, Int32 depth)
   at ControlExtensions.ImSvg.ElementNode(Graphics g, XmlNode elementNode, Int32 depth)
   at ControlExtensions.ImSvg.ElementSvg(Graphics g, XmlNode svgElementNode, Int32 depth)
   at OptionBasedFileTypes.SvgFileType.OnLoad(Stream input)
   at PaintDotNet.FileType.Load(Stream input) in d:\src\pdn\paintdotnet\src\Data\FileType.cs:line 477
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in d:\src\pdn\paintdotnet\src\Base\Functional\Func.cs:line 158

Please help!

But It don't works for me, the SVG file works in broswer as you can see:

http://image.noelshack.com/fichiers/2016/27/1467729402-capture.jpg

 

Thanks !

PS : Sorry for eventual mistakes, i'm not english =)

Share this post


Link to post
Share on other sites

That's a problem with the formatting due to the upgrade to the forum software. What's happened is that our custom TABLE tags have broken :(

 

I've put in a little fix to make the first post readable (line height increased from 0px to 1.5em - it's a CSS thing ;) )

 

Link is working as expected. Please try it again.

Share this post


Link to post
Share on other sites

Here's an easy way around until something can be done to fix the plugin. 

XUOb8wF.png

 

It actually works quite with images I tested up to the size of an A4 page. Pictures can then be easily copied from Word into PDN for editing if necessary.

 

 

 

Share this post


Link to post
Share on other sites

For some reason the plugin isn't able to open SVG files exported from Adobe Illustrator. All the shapes turn out black. Searching the forums I could only find this release. Fortunately a Google search came up with this one released on Github that works for me: https://github.com/otuncelli/Scalable-Vector-Graphics-Plugin-for-Paint.NET/releases/tag/v0.2-alpha

  • Like 1
  • Upvote 1

Share this post


Link to post
Share on other sites

re: Download >>ImSVG.FileType v0.18 (23.3.2014), is this link still viable?  I navigate to the link (on DropBox), but nothing happens - no download, nothing.  Just an empty page.  I thought I might need to be signed in as a Forum member so I tried that but still no joy.  Anyone else having any luck?  I'd like to get this plugin if it's actually a thing.

Thanks, 

MediaWhapper 

Share this post


Link to post
Share on other sites
1 minute ago, MediaWhapper said:

re: Download >>ImSVG.FileType v0.18 (23.3.2014), is this link still viable?  I navigate to the link (on DropBox), but nothing happens - no download, nothing.  Just an empty page.  I thought I might need to be signed in as a Forum member so I tried that but still no joy.  Anyone else having any luck?  I'd like to get this plugin if it's actually a thing.

Thanks, 

MediaWhapper 

 

It downloaded for me.  Maybe try again.

Share this post


Link to post
Share on other sites
On 4/3/2018 at 6:23 PM, Drift91 said:

For some reason the plugin isn't able to open SVG files exported from Adobe Illustrator. All the shapes turn out black. Searching the forums I could only find this release. Fortunately a Google search came up with this one released on Github that works for me: https://github.com/otuncelli/Scalable-Vector-Graphics-Plugin-for-Paint.NET/releases/tag/v0.2-alpha

 

The Scalable-Vector-Graphics-Plugin-for-Paint.NET is updated with Layers support.

Please check the latest version.

 

I have tried plugin from the original post but some layers are skipped, so it was fixed for this one.

New:

  • Layers
  • Opacity can be stored as a layer property.
  • Import of hidden Layers
  • Groups boundaries. Extra layers will be created to wrap grouped layers. Layers names are the same as for PSD plugin. So you can export your SVG file and save as Photoshop files with folders/groups support. See the link

 

 

svg_import.png

tiger_svg.jpg

Edited by Ievgen Naida
  • Like 1

Share this post


Link to post
Share on other sites

Clicking the Download link (https://www.dropbox.com/s/us5qwxxmuiia56y/ImSVG_Open.FileTypev0.18.zip?dl=0) displays the contents of the Zip file in Dropbox.

If there is a direct way to download the files from there it isn't apparent when have chosen not to log into DropBox (despite the comment saying "Click the Download button", there isn't one).

 

You can, however, just go up to the URL, change dl=0 to dl=1 and the zip file will download when you press Enter (the URL will also revert to dl=0).

Share this post


Link to post
Share on other sites

Hi @Anth0ny and Welcome.  I just tried the link and had no trouble.  All one has to do is hit the Download - top right of Dropbox - and the Zip downloads :)

 

Share this post


Link to post
Share on other sites

On trying to open SVG file get an error:

Interesting are paths in the last two rows of the error text: my PaintNet is installed in C:/program files and my machine has no D:/

Application version: paint.net v4.2.8

System.OverflowException: Überlauffehler.
   bei System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   bei System.Drawing.Graphics.FillPath(Brush brush, GraphicsPath path)
   bei ControlExtensions.ImSvg.PaintPath(Graphics g, XmlNode elementNode, GraphicsPath gp)
   bei ControlExtensions.ImSvg.ElementPath(Graphics g, XmlNode elementNode)
   bei ControlExtensions.ImSvg.ElementNode(Graphics g, XmlNode elementNode, Int32 depth)
   bei ControlExtensions.ImSvg.ElementG(Graphics g, XmlNode elementNode, Int32 depth)
   bei ControlExtensions.ImSvg.ElementNode(Graphics g, XmlNode elementNode, Int32 depth)
   bei ControlExtensions.ImSvg.ElementSvg(Graphics g, XmlNode svgElementNode, Int32 depth)
   bei OptionBasedFileTypes.SvgFileType.OnLoad(Stream input)
   bei PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:Zeile 512.
   bei PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:Zeile 158.

 

Edited by Chilly_Bang

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this