Image Converter for Visio

PNG2VSS is a “Swiss knife” for conversion graphics to MS Visio stencils. You can import a lot of images by single click!

The latest version can import:

  • Raster images (png, bmp, dib, gif, jpg, jpeg, jpe, jfif, tif, tiff);
  • Vector images and metafiles (emf, wmf, emz, wmz, svg, svgz);
  • Visio drawings (vsd, vst, vdx, vtx);
  • CAD drawings (dwg, dxf);
  • Adobe Photoshop images (psd);
  • Adobe Illustrator files (ai);
  • PostScript files (ps, eps);
  • CorelDraw files (cdr).

Last 3 options require Inkscape and Ghostscript installed.

But it’s not all, it also can:

  • Add connection points to shapes;
  • Create transparent backgrounds for raster images;
  • Crop raster images;
  • Convert raster images to grayscale;
  • Re-size or scale images without degradation of original quality;
  • Add custom properties to shapes and fill them in with default values;
  • Save and load sets of custom properties to/from file;
  • Add prompts to shapes;
  • Create 1-dimensional shapes;
  • Add metadata to stencils;
  • Save conversion settings;
  • Process images automatically with command line options;
  • Visio drawings can be converted to flat vector graphics;
  • Vectorize raster images.

Requirements: MS Visio 2003-2012, NET Framework 4.0, MS Office 2010 Interop Assemblies.
Ensure that assemblies are installed before use:
1) Start Visio installation, do not reinstall it, just check off “.NET Programmability Support”.
2) Or: download Microsoft Office 2010: Primary Interop Assemblies Redistributable. This way also works if you still use Visio 2003 or 2007.

The latest version is 5.0. The utility is portable, installation is not required, just download and expand to some folder on your drive.

Every donation makes this utility a little bit better :)

68 thoughts on “Image Converter for Visio

  1. Dimitri, thank you, thank you, thank you. I’ve been looking for a way to import SVG files into Visio 2016 such that my Theme colors apply to the artwork. Your application did the trick. You have my sincerest gratitude. All the best to you, sir!

  2. Great tool! Using to convert some shapes from a PowerPoint to Visio shapes. One request – when converting to non-1-dimensional shapes, could the shapes being made already be grouped? The issue I’m running into is that in order to use the data linking feature in Visio, you can’t apply the data graphic to a set of non-grouped shapes.

    As a workaround, I can open the Stencil, edit the Master Shape, select the shape in the windows and then “Group”. If this could be automated in the tool itself, that would be a huge help! I can also just create 1-dimensional shapes, but then connection lines won’t route around the edges of the shape.

    1. This is the VBA I used to extract all the individual shapes in a PPT to individual PNG files. Saves a lot of time versus saving each individual object.

      Sub PrintShapesToPng()
      Dim ap As Presentation: Set ap = ActivePresentation
      Dim sl As Slide

      Dim sh As Shape

      Dim shGroup As ShapeRange
      For Each sl In ap.Slides
      ActiveWindow.View.GotoSlide (sl.SlideIndex)
      Set shGroup = ActiveWindow.Selection.ShapeRange

      For Each sh In shGroup
      sh.Export ap.Path & “\Slide” & sl.SlideIndex & sh.Name & “.png”, _
      ppShapeFormatPNG, , , ppRelativeToSlide

      shGroup.Export ap.Path & “\Slide” & sl.SlideIndex & “.png”, _
      ppShapeFormatPNG, , , ppRelativeToSlide
      End Sub

  3. I am getting the following error. Any thoughts ? I have enabled all the files under the trust center.

    System.Runtime.InteropServices.COMException (0x86DB08C3):

    You are attempting to open or save a file type that is blocked by your File block settings in the Trust center.
    at Microsfot.Office.Interop.Visio.DocumentClass.SaveAs(String FileName) at Png2Vss.Form1.DoConversionProc(Object parameters)

  4. Hi Dmitry,

    I’m having problems with the UI not showing several of the entry fields (e.g. # of points fields, scale percentage, height/width fields). It seems like there’s an issue with DPI scaling since some of the fields will appear if I stretch the window to maximum width.

    Do you have any ideas how I can work around this behavior?


  5. Hi Dmitry
    Thank you for your hint, it works now !!! (great tool)
    one question more:
    does it make a big difference if I’m using a png oder eps as source file Format (Quality and Function)?
    eps requires inkscape and seems to more complicate?

    best regards

      1. Hi Dmitry
        unfortunately I do have new and other Problems, because I changed my System and now I have Windows 10 installed and of course all the parts of png2vss.
        The first Problem I have is, that the path where inkscape, potrace is installed, is not stored within the the tool. Each time I close the png2vss, the settings are lost

      2. the second and much bigger Problem is, that no conversion is possible anymore. It says proccessing and after a while I receive an error message like this: System.IO.FileNotFoundException: Failed to process file Filename “xyc…” with Png2Vss.Form1.DoConversionProc(Object Parameters)

        1. I’m still using Windows 7 & 8, so can’t check right now, but looks like it’s related to security permissions: the process cannot write files. Try to run png2vss under Administrator account (Run as Administrator).

  6. Hi Dimitri
    I’m Swiss and unfortunately I have to say, that a swiss army knife is working better, than your visio converter

    As soon as push the start button, an error message appears, which says “the program has stopped working.

    Any ideas, what the is going wrong here?

  7. Hi Dmitry
    Is this tool only for single images, or can I convert an entire .psd file of images to a Visio stencil? I have a large .psd file(50mb) of all of the Bootstrap Components that they show on there website. I was wondering if I could convert that big file to a Visio stencil, Or will I have to save off every image separately in order to convert.


  8. This is an awesome tool ;
    Tanks a lot.

    I have just one question; is it possible to enter formulas for value;
    e.g. =Pagename();
    In the shapesheet, there are always quotation marks added (“=Pagename()”

  9. i have tried it so many times but no hope. :( the image has been only an object and doesn’t handle each component inside it separately

  10. Getting the following error message when trying to convert .eps to .vss
    System.IO.FileNotFoundException: Failed to process file
    File name: ‘C:\Inkscpape\5V.eps’
    at Png2Vss.Form1.DoConversionProc(Object parameters)
    all required components installed, .eps exists and is accessible
    Any clues?

  11. Receiving error after clicking the “Start” button. Regarding POtrace file not found? Already reinstalled .net 4. Any other ideas? I’m running Win 7 32-bit

  12. Hello, I am trying to convert a PNG to VSS and as soon as I click “Start” to start the conversion I get “png 2 vss converter has stopped working” with the following error:

    Problem signature:
    Problem Event Name: CLR20r3
    Problem Signature 01: png2vss.exe
    Problem Signature 02:
    Problem Signature 03: 52f7df78
    Problem Signature 04: mscorlib
    Problem Signature 05: 4.0.30319.18444
    Problem Signature 06: 52717d7e
    Problem Signature 07: 1624
    Problem Signature 08: 70
    Problem Signature 09: System.IO.FileNotFoundException
    OS Version: 6.1.7601.
    Locale ID: 1033
    Additional Information 1: 5e19
    Additional Information 2: 5e19ee1c696ef6172247e218fb962904
    Additional Information 3: 3953
    Additional Information 4: 39531684678f776a04e2bf0e6976d2cd

    I am on Win 7 64bit, Visio 2010, have installed Office 2010 interop assemblies, enabled .NET programmability support and have .NET framework 4.0+

    Can you please assist?


  13. THIS Tool is exactly what I’m looking for.

    We have a bunch of vector graphic pictograms in EPS and some users requestet to use them in Visio2010 and 2013. I tried several ways with no success.

    However with Dimitrys tool I can easly bring a bunch of Pictogramms in a Visio stencil and nothing is getting lost. Really a great tool.

    Well done Dimitry

    Betty Bossi

  14. Hello … Is it possible to convert in a batch mode in the other direction, I.e. VSS to PNG ? Can anyone recommend a tool for this ?

    Many thanks


  15. Great tool, thanks a lot!
    One minor issue (no real issue for me): the text that I add to the images in Visio (Visio 2010) isn’t resizable, even when ‘Flatten Visio drawing’ is turned on.

    1. During installation, I get an error like “A DLL required for this install to complete could not be run”. My OS is Windows 7 ultimate 64 bit. I have NET Framework 4.0 already installed. What is the solution?

    1. Using VBA script, e.g.:

      Sub Export2SVG()

      Dim vsoStencil As Visio.Document
      Dim vsoDocument As Visio.Document
      Dim vsoMaster As Visio.Master
      Dim vsoShape As Visio.Shape

      ‘ replace file name
      Set vsoStencil = Documents.Add(“Your Shapes.vss”)
      Set vsoDocument = Documents.Add(“”)

      For Each vsoMaster In vsoStencil.Masters
      Debug.Print “Exporting ” & vsoMaster.Name & “…”
      Set vsoShape = vsoDocument.Pages(1).Drop(vsoMaster, 0#, 0#)
      ‘ change path
      vsoShape.Export (“D:\SVG\” & vsoMaster.Name & “.svg”)

      vsoDocument.Saved = True
      End Sub

  16. Thanks very usefull piece of software. Noticed a typo in it though, in the tab Shape Data its says propmt instead of prompt.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s