otuncelli Posted September 17, 2020 Share Posted September 17, 2020 (edited) This is a paint.net 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. This plugin also provides basic image tracing (raster to vector conversion) functionality which works best with black and white drawings. You may export the tracing result as SVG or Paint.NET Shape. Prerequisites paint.net 5.0.9 or later Download links The easiest and recommended way to install the plugin is using the installer. It supports Store and Classic versions of Paint.NET. If you're using the Portable version of Paint.NET please use the manual installation method. 💾 Installer SvgFileTypePlugin_setup.exe 💾 Manual Installation SvgFileTypePlugin.zip How to install ⚠️ Note: Before install make sure you don't have any other file type plugin installed handling the same file extensions: .svg, .svgz 👉 To auto install (recommended) the plugin perform the following steps: Download and run SvgFileTypePlugin_setup.exe Follow the steps of the setup wizard. 👉 To manually install the plugin perform the following steps: Make sure paint.net is not running. Download and extract SvgFileTypePlugin.zip If you're using Classic version of paint.net: Copy the SvgFileTypePlugin folder to the <paint.net>\FileTypes directory (Default location is C:\Program Files\paint.net\FileTypes). If you're using Microsoft Store version of paint.net: Copy the SvgFileTypePlugin folder to the <Documents>\paint.net App Files\FileTypes directory. Done. You may start paint.net. Supported languages English Turkish Feel free to submit translations for the other languages. You may find the reference English .resx file here. Old versions I do not support or provide binary links for the old releases. However, you may download the archived source code and compile it yourself. License GPL version 2 Source code Edited August 10, 2023 by otuncelli updated to v1.0.6.0 4 2 Quote Link to comment Share on other sites More sharing options...
otuncelli Posted September 29, 2020 Author Share Posted September 29, 2020 (edited) 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 September 29, 2020 by otuncelli fixed a typo 1 2 Quote Link to comment Share on other sites More sharing options...
otuncelli Posted May 11, 2021 Author Share Posted May 11, 2021 Updated to v1.02 🥰 Changelog: Fixed an error that causes paint.net to crash when setting canvas dimensions (#11) Updated to use SVG.NET v3.2.3 and Fizzler v1.3.0 2 1 Quote Link to comment Share on other sites More sharing options...
Juggernaut- Posted June 3, 2021 Share Posted June 3, 2021 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. Quote Link to comment Share on other sites More sharing options...
null54 Posted June 3, 2021 Share Posted June 3, 2021 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. Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint 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 More sharing options...
Juggernaut- Posted June 3, 2021 Share Posted June 3, 2021 Is there a way to save the contents of the canvas in SVG format ? Quote Link to comment Share on other sites More sharing options...
BoltBait Posted June 3, 2021 Share Posted June 3, 2021 3 minutes ago, Juggernaut- said: Is there a way to save the contents of the canvas in SVG format ? Sounds like you need an SVG editor. Try InkScape. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
Juggernaut- Posted June 3, 2021 Share Posted June 3, 2021 Is there a plugin to save the canvas content into Inkscape file format ? Quote Link to comment Share on other sites More sharing options...
BoltBait Posted June 3, 2021 Share Posted June 3, 2021 1 minute ago, Juggernaut- said: Is there a plugin to save the canvas content into Inkscape file format ? No, but InkScape can load PNG files. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
Juggernaut- Posted June 3, 2021 Share Posted June 3, 2021 But the curves and lines created on different layers of Paint .NET will become non editable when saved / converted to PNG ? Quote Link to comment Share on other sites More sharing options...
BoltBait Posted June 3, 2021 Share Posted June 3, 2021 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. 1 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
AlexDolmatov Posted July 29, 2021 Share Posted July 29, 2021 (edited) Application paint.net 4.3 (α 4.300.7879.42543) Quote C:\Program Files\paint.net\FileTypes\SvgFileType.dll, версии 1.0.0.0 Тип: System.Web.IHttpAsyncHandler System.TypeLoadException: Could not load type 'System.Web.IHttpAsyncHandler' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Before that, there was a smaller plugin of the same version (598 KB = 612864), but the update did not help. + Spoiler report answer Edited August 1, 2021 by AlexDolmatov Add link Quote Link to comment Share on other sites More sharing options...
AlexDolmatov Posted July 30, 2021 Share Posted July 30, 2021 Quote Currently I'm working on this. I'll release a new .NET 5 compatible version in a day or two. otuncelli commented on github. 2 Quote Link to comment Share on other sites More sharing options...
otuncelli Posted August 1, 2021 Author Share Posted August 1, 2021 (edited) Links updated to v1.03 🥰 Changelog: Removed ASP.NET dependency of SVG.NET library. Edited August 1, 2021 by otuncelli 1 1 Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted August 1, 2021 Share Posted August 1, 2021 @otuncelli Unable to load in beta 4.3.7881 C:\Program Files\paint.net\FileTypes\SvgFileType.dll, version 1.0.3.0 System.IO.FileNotFoundException: Could not load file or assembly 'Svg, Version=3.2.0.0, Culture=neutral, PublicKeyToken=12a0bac221edeae2'. The system cannot find the file specified. File name: 'Svg, Version=3.2.0.0, Culture=neutral, PublicKeyToken=12a0bac221edeae2' I checked 3 times to ensure everything was placed correctly. 1 Quote Link to comment Share on other sites More sharing options...
AlexDolmatov Posted August 1, 2021 Share Posted August 1, 2021 1 hour ago, AndrewDavid said: Unable to load in beta 4.3.7881 I have a test file opened, although there is a svg.dll missing error. Details here: https://github.com/otuncelli/Scalable-Vector-Graphics-Plugin-for-Paint.NET/issues/13 2 Quote Link to comment Share on other sites More sharing options...
otuncelli Posted August 1, 2021 Author Share Posted August 1, 2021 Links updated to v1.03.1 🥰 Thanks to @AlexDolmatov and @AndrewDavid Changelog: Fixed a dependency loading problem. 1 Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted August 1, 2021 Share Posted August 1, 2021 Well done @otuncelli Issue resolved. Once I removed the other plugin, yours took over. No need to scroll down and select filetype. If the file is a true SVG, paint opens it automatically. Thank you for the updated plugin. 1 Quote Link to comment Share on other sites More sharing options...
ThreadSnake Posted August 10, 2021 Share Posted August 10, 2021 (edited) This is the SVG file I am importing: (2nd path is cropped out because it is long) Should the dialog box say n/a, 0, n/a for Size settings while importing this file? It is reading successfully, but I cannot edit any Viewport and ViewBox settings, and changing Canvas beyond 500 only adds transparent pixels to the side and bottom and I cannot resize the actual rendering. I don't have the other old SVG filetype plugin installed. There isn't any information on how this plugin is supposed to work, so I don't know if this is abnormal or not. Edited August 10, 2021 by ThreadSnake added clarification in one sentence Quote Link to comment Share on other sites More sharing options...
otuncelli Posted August 10, 2021 Author Share Posted August 10, 2021 (edited) Hi @ThreadSnake This could be related to an issue with SVG.NET library internally used by the plugin which does the actual SVG reading. Issue is here: https://github.com/svg-net/SVG/issues/837 I'll check this again more thoroughly. If it's something I can fix, I'll update the plugin. Viewbox and Viewport fields are just informational fields. You can't edit them. Thanks for reporting. As a workaround, adding "viewBox" attribute to svg definition seems to fix the problem. <svg xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"> Edited August 10, 2021 by otuncelli 1 Quote Link to comment Share on other sites More sharing options...
otuncelli Posted September 20, 2021 Author Share Posted September 20, 2021 (edited) Updated to v1.04. Changelog: Fixed a size detection problem. Added support for rendering use element when importing with layers (experimental) Fixed a crash when clicking the GitHub link on Paint.NET 4.3+ License changed to LGPL Edited September 20, 2021 by otuncelli 1 1 Quote Link to comment Share on other sites More sharing options...
Wertyx Posted September 30, 2021 Share Posted September 30, 2021 The plugin stopped working after upgrading Paint.net to v4.3 (and 4.3,.) C:\Program Files\paint.net\FileTypes\SvgFileType.dll, version 1.0.0.0 Type: System.Web.IHttpAsyncHandler System.TypeLoadException: Could not load type 'System.Web.IHttpAsyncHandler' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted September 30, 2021 Share Posted September 30, 2021 1 hour ago, Wertyx said: C:\Program Files\paint.net\FileTypes\SvgFileType.dll, version 1.0.0.0 It looks like you're using an outdated version of the plugin. Please download and install the current version. Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Wertyx Posted September 30, 2021 Share Posted September 30, 2021 58 minutes ago, toe_head2001 said: It looks like you're using an outdated version of the plugin. Please download and install the current version. Yes, I suspected that might be the case and got the latest version from GitHub and it worked. I should have checked that before posting, but no version was indicated in the original post and of course I did not read the whole thread... 😛 Quote Link to comment Share on other sites More sharing options...
otuncelli Posted October 26, 2021 Author Share Posted October 26, 2021 Updated to v1.05 Changelog: Fixed a potential OverflowException. Updated to use SVG.NET v3.3.0. Added theme support. 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.