Jump to content

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


otuncelli
 Share

Recommended Posts

This is a filetype plugin for loading SVG (Scalable Vector Graphics) and its compressed variant SVGZ files.

 

SVG elements can be rendered as a flat image file or each on a separate layer.

 

The plugin is a tiny wrapper around the SVG.NET Library which does the actual SVG reading.

 

Disclaimer: I merged all required third party libraries into a single file so everyone can easily install, remove and update it when needed. Because of this merging, the binary form of the plugin contains code from the Fizzler project ( LGPL - GNU LESSER GENERAL PUBLIC LICENSE ) which forces me to use the same license. LGPL terms only apply to binary form.

 

You can get the latest version from this link:

SvgFileType.dll 

SvgFileType.dll.zip (zipped)

 

To install the plugin perform the following steps:

  • Put the DLL in the <Paint.NET>\FileTypes directory (default location is C:\Program Files\paint.net\FileTypes)
  • For the Windows Store version of Paint.NET, put the DLL in the <Documents>\paint.net App Files\FileTypes directory
  • Restart Paint.NET if you have it open

 

Project on Github

 

If you experience any problems you can open an issue on github or post here.

 

Also if you're a developer, you're welcome to contribute code on Github and help making this plugin better.

Edited by otuncelli
update links to v1.02
  • Like 2
  • Upvote 2
Link to comment
Share on other sites

Updated to v1.01.

 

Changelog:

  • Fixed some bugs that leading crash.
  • Some GUI changes.
  • Viewport x, y values were not displaying correctly.
  • Fixed duplicate import of groups when using Group import mode.
  • Auto-generated layer names are now more meaningful.
  • Added a memory warning message when importing many layers.
  • Case-insensitive comparison of values for visibility attributes (visibility & display) for svg elements.
Edited by otuncelli
fixed a typo
  • Like 1
  • Upvote 2
Link to comment
Share on other sites

  • 4 weeks later...
Quote

To install the plugin perform the following steps:

  • Put the DLL in the <Paint.NET>\FileTypes directory (default location is C:\Program Files\paint.net\FileTypes)
  • For the Windows Store version of Paint.NET, put the DLL in the <Documents>\paint.net App Files\FileTypes directory
  • Restart Paint.NET if you have it open


I have installed the plugin as described above.

But the Scalable Vector Graphics ( SVG, SVGZ )  file types are not showing up in the file type drop down menu of the ''Save As'' dialogue box.
Please let me know how to resolve the situation.

Link to comment
Share on other sites

24 minutes ago, Juggernaut- said:

But the Scalable Vector Graphics ( SVG, SVGZ )  file types are not showing up in the file type drop down menu of the ''Save As'' dialogue box.

 

The plugin only supports loading SVG files, it does not support saving them.

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
Share on other sites

2 hours ago, Juggernaut- said:

But the curves and lines created on different layers of Paint .NET will become non editable when saved / converted to PNG ? 

 

Yes, that's exactly right... because Paint.NET is a raster image editor and not a vector image editor.

 

If you want to save a vector image in a vector format, you should use a vector editor, like InkScape.

Click to play:
j.pngs.pngd.pnga.pngp.png
Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game

Link to comment
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.

 Share

×
×
  • Create New...