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;
  • Create line, line ends and fill pattern stencils.

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.1. 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:)

74 thoughts on “Image Converter for Visio

  1. I love this program! Thank you so very much for making it! I wondered about two things: 1)Could you make a similar program to produce fill patterns? and 2)Could you make a similar program to make line patterns? I have a ton of old repeating line patterns from books from the late 1800s. It has taken me months to just scan in the images. I’m still working on a way to just split up the images presently but it would be fantastic to be able to load a segment in and replicate that as a line pattern (rather than having to do it all by hand). Thanks again and as I said in my other post (which I put on the wrong page – forgot I was on the Visio Stencil library page). I just about cried when I found your website. I’m busily converting the thousands of individual images I have into stencils. All I can say is “WOW!”. Thanks again:-) I’ll donate some money as soon as I get my next unemployment check.:-)

      1. Hi Dmitry, i have visio drawings which are in JPEG format. is it possible to convert it back to visio drawings so i can edit them ? Because i tried your program and all i managed to do is import the JPEG pictures without being able to edit them.

        Regards

        Big fat donation from me if this works

  2. 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!

  3. 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)
      sl.Shapes.SelectAll
      Set shGroup = ActiveWindow.Selection.ShapeRange

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

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

  4. 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)

  5. 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?

    Thanks!

  6. 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
    Herby

      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).

  7. 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?

  8. 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.

    Thanks.

  9. 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()”

  10. 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

  11. 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?

  12. 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

  13. 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: 5.0.0.0
    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.2.1.0.256.48
    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?

    Thanks

  14. 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

  15. 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

    Regards
    Joe

  16. 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”)
      vsoShape.Delete
      Next

      vsoStencil.Close
      vsoDocument.Saved = True
      vsoDocument.Close
      End Sub

  17. 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:

WordPress.com Logo

You are commenting using your WordPress.com 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