Development

Tips & code for programming Visio & using the ShapeSheet

Maps & Geography

Maps & geography shapes & templates galore!

Network

Shapes & tools for Visio network diagrams.

News

Find out what’s new in the Visio world!

Shapes

Download useful & attractive Visio shapes. For free!

where can i buy windows 7 cheapest buy windows 7 upgrade from xp windows vista purchase price buy inventor 2010 pctools spyware doctor 5.5 buy windows 7 best price norton ghost 12 product key windows 7 price future shop windows xp price singapore windows 2008 web server download omnipage coupon buy windows 7 starter download adobe indesign cs3 for mac buy vista to windows 7 microsoft project 2003 download buy windows xp operating system windows 7 home premium cheap mathcad pricing photoshop buy mac discount autocad 2009 purchase microsoft money 2007 deluxe download photoshop mac autodesk maya 2009 price windows vista business download windows 7 price 64 bit purchase windows 7 ultimate full version buy windows 7 home premium key lightroom for apple purchase windows xp india adobe cs4 photoshop buy where to buy encarta 2009 purchase vista oem buy windows 7 tesco cheap adobe fireworks windows 7 price online best price corel draw 11 mac discount powerpoint buy microsoft office for mac canada buy microsoft project 2002 adobe production premium mac turbotax 2009 deluxe best price windows 7 ultimate 64 bit best price buy windows 7 amazon adobe flash pricing adobe dreamweaver sale purchase windows 7 ultimate buy quickbooks pro 2007 roxio copy & convert 3 buy download photoshop elements 6 steinberg nuendo price uniblue registrybooster 2009 download cheap photoshop programs adobe photoshop elements cheapest buy windows 7 future shop adobe presenter 7 download microsoft office 2003 sale buy quarkxpress 8 for mac purchase adobe cs3 design premium purchase after effects cs3 paperport professional 12 prices cakewalk download parallels desktop price buy microsoft windows 7 home premium cheap adobe after effects for mac how to purchase windows 7 online download microsoft streets and trips 2008 microsoft office 2003 cheapest buy windows 7 online singapore purchase autodesk 3ds max 2009 buy windows xp pro best price adobe flash cs3 buy uniblue registrybooster 2009 cheap windows 7 ultimate retail buy autodesk autocad buy microsoft office document imaging purchase microsoft office 2003 buy windows xp media centre edition discount microsoft windows 7 ultimate windows 7 price upgrade cheap adobe photoshop software burnaware professional price buy acronis true image 2010 windows 7 price change buy acrobat 7 where to buy adobe flash cs3 quicken 2010 price buy windows xp corporate buy office 2007 student product key windows 7 price hong kong buy windows 7 64 buy acrobat professional 9 symantec winfax pro 10.4 buy cheap windows 7 keys adobe photoshop cs4 buy buy microsoft visio 2007 turbotax deluxe 2009 download windows xp price in rupees buy lightroom software buy windows 7 buy windows 7 serial key steinberg nuendo 3 download download autodesk 3ds max 9 buy ms project online windows 7 price egypt windows 2008 enterprise download parallels mac download adobe lightroom sale cheap cubase 5 where to buy windows xp service pack 2 purchase windows vista download cheap windows 7 in singapore lowest price microsoft office purchase windows 7 license key where can i buy windows 7 starter edition buy i.r.i.s. readiris pro 11 cheap windows xp operating system buy office 2003 key where to buy windows xp cheap autocad mechanical 2009 download buy matlab software buy 3ds max 2010 student download dragon naturally speaking autocad inventor download get autocad 2010 buy adobe illustrator cs2 buy windows 7 mac windows xp price canada steinberg cubase sx3 download cheap windows 2003 enterprise download adobe illustrator cs3 can i buy windows xp online windows xp price in malaysia buy adobe cs4 suite best price adobe illustrator cs3 download font folio 11 acdsee pro license key cs3 production premium mac ms streets and trips 2008 download download adobe illustrator mac windows 7 price in india where can i buy cubase sx3 windows vista download iso roxio creator 2010 coupon code microsoft office price student windows 7 home premium 64 bit oem buy microsoft frontpage software buy windows xp 64 pro cheap windows 7 home premium full version buy burnaware professional cheap microsoft works 9 microsoft visio download adobe cs4 web premium oem download disk director cheap adobe creative suite cs4 microsoft money home and business download buy parallels desktop 5 for mac cheapest norton 360 3.0 lightroom price buy windows vista pro microsoft money buy online buy microsoft expression blend 3 buy windows 7 full version for students purchase lightroom 2 buy microsoft office ultimate pdf converter professional 6 promotional code buy adobe cs3 design premium buy indesign cs3 software buy windows vista ultimate upgrade acdsee photo editor download microsoft office 2003 professional cheap windows 7 for college students illustrator cs3 download download adobe indesign cs4 cyberlink powerdirector prices buy windows vista ultimate license buy access 2003 online windows 7 price guide mathcad price buy after effects cs4 mac cheap fl studio 8 xxl cheap photoshop elements 8 buy windows vista home premium oem buy wordperfect x3 buy windows 7 home premium 64 bit buy windows 7 brisbane buy windows 7 bangkok autodesk mudbox price purchase vista license cheap adobe premiere elements 8 download adobe creative suite 4 design premium best price microsoft excel 2003 buy microsoft project 2000 microsoft expression price discount photoshop elements 8 cheap maya software 3ds max sale buy windows 7 ebay windows 7 price 2010 deskshare videoeditmagic 4.3 price buy windows xp 2010 norton 360 price comparison buy windows xp used adobe contribute mac purchase windows 7 for mac buy windows vista home premium product key buy windows 2003 datacenter buy windows 7 professional cheap microsoft windows 7 ultimate buy sony vegas pro 8 purchase access 2007 final cut express 4 cost download microsoft visio 2007 buy onenote 2003 photoshop lightroom for mac symantec pcanywhere download windows 7 price pakistan buy premiere pro cs3 cheap windows 7 for students in australia web page maker 3 download buy windows xp home sp3 adobe photoshop best buy cheap windows 2008 enterprise buy windows 7 direct download download microsoft mappoint 2009 buy windows xp home download microsoft autoroute 2007 europe ashampoo burning studio download buy windows xp calgary archicad 13 download adobe cs4 design premium trial price photoshop elements 8 windows 7 home premium cheapest autodesk lustre pricing purchase archicad 13 acdsee pro 2 download windows 7 discount canada vmware workstation 7 download discount autodesk 3ds max 2009 buy autodesk inventor professional buy windows xp home full version buy windows 7 language pack buy microsoft office 07 buy microsoft excel 2007 download propellerhead reason 4 mappoint 2009 european buy access 2007 only buy frontpage 2003 purchase windows 7 ultimate online purchase microsoft windows vista buy dragon naturally speaking 10 oil price vista gadget pinnacle studio 14 best price cheap corel video studio pro x2 buy photoshop 7 for mac buy adobe cs3 design premium mac download ashampoo burning studio 9 cheap microsoft project 2007 dvd ripper platinum 5 buy adobe premiere pro cs4 download best price microsoft windows vista windows 7 discount for high school students purchase windows 7 professional (64 bit) compare price photoshop buy windows 7 philippines buy microsoft office powerpoint 2007 purchase windows xp sp3 buy photoshop elements 8 mcafee total protection 2009 download best buy autocad 2009 buy windows vista singapore purchase windows 7 now buy windows xp mumbai buy windows 7 ultimate 64 bit oem windows 7 price kenya ms works download adobe acrobat 9 oem buy windows 7 downloadable adobe cs4 web premium trial cheap windows 7 professional best price windows 7 home premium oem download adobe photoshop elements 6 navisworks manage price windows 7 price comparison buy guitar pro 5.2 download acronis true image 11 buy nero 8 ultra edition acdsee price download adobe robohelp 8 buy powerdirector 7 ultra imsi turbofloorplan home and landscape pro 12 buy buy microsoft expression studio 2 windows 7 discount for military buy windows 7 30 download pinnacle studio 12 ultimate adobe acrobat price comparison mappoint 2009 europe buy cheap avanquest mylogomaker professional 2 buy windows xp cheap microsoft office discount code buy windows 7 switzerland buy windows xp volume license buy norton 360 download cheap adobe photoshop cs3 download microsoft expression studio 3 buy office 2010 professional fl studio 8 xxl download buy microsoft office 2007 home and student cheap adobe cs4 design premium abbyy finereader 9.0 express edition where to buy streets and trips 2010 office 2007 price student buy roxio creator 2010 cheap adobe cs4 master collection mac buy windows xp ebay cheap indesign software buy corel photoimpact x3 download avanquest mylogomaker professional 2 cheap ashampoo burning studio 8 adobe captivate pricing autocad architecture oem buy microsoft office pro 2007 where can i buy powerpoint 2003 turbo tax cost buy windows 7 india online purchase windows 7 license online buy adobe flash cs4 buy windows vista ultimate product key buy cs4 mac buy adobe indesign cs4 best buy microsoft windows 7 ultimate cheap adobe dreamweaver cs4 mac cheap windows 7 canada roxio creator 2009 special edition microsoft office 2010 price in india windows 7 price canadian buy windows xp embedded download corel draw 12 adobe creative suite 4 production premium download buy adobe photoshop cs3 extended buy windows vista business 64 bit buy ms office 2003 pro best buy quicken 2010 buy microsoft office for mac cheap buy adobe after effects cs4 cheap norton 360 3.0 best price adobe cs4 master collection windows 7 price for teachers buy windows xp student purchase adobe acrobat 8 professional buy sql server guitar pro 5 mac download
Home » Development, Power User

Effects of Imported Images on Visio File Size

Submitted by Visio Guy on April 12, 2008 – 1:20 am | | 9085 views 14 Comments

Read Full ArticleYou can quickly create detailed shapes by importing images into Visio. If you don’t have time (or budget!) to make a detailed drawing of that special ThinkPad or iPhone or USB Stick shape that you’ve been craving, you can simply browse for an image, and insert it into Visio!

It’s a fairly simple matter that you can achieve via two ways: Choose the menu: Insert > Picture > From File… or: Copy an image from an image-editor or image-viewing program and paste it into a Visio page. Simple indeed!

But what happens to Visio file sizes when you import images?

Does Visio compress famously-large BMP files on import, or will the .vsd become huge itself? Will we get significant savings by importing JPG or PNG files as opposed to straight-bitmaps?

Well today, we ran a few tests to see what happens!

Process and Summary

In order to test Visio’s handling of imported images, we created a test image, and saved it in three common image formats: BMP, PNG and JPG. We then loaded each image into a Visio 2007 file and noted the increase in file size for each image. Pretty standard stuff.

We also tested what happens when you simply copy and paste an image into Visio.

It looks like Visio does indeed do some compression on the imported images. For bitmaps, you’ll get big savings, which isn’t surprising.

But for PNGs and JPGs, it’s hard to tell what’s really going on. It appears that PNGs and JPGs slightly increase in size inside the Visio document! But we have to remember that Visio is wrapping a shape object around each image, which adds some overhead.

Empty Drawing

First, we created an empty Visio drawing – a default drawing that we created by clicking the New button on the Standard toolbar:

Then we noted the size of this document:

  • Empty .vsd = 11.0 KB

Adding a single rectangle to the document only added 1 KB to the file size. We could guess that 1 KB is the approximate amount of overhead that a shape adds to an imported image, but perhaps the story is more complicated than that.

Test Images

Next, we created a test image by Snagging a shot of a YouTube page from our browser:

We saved this image to three different file formats, and noted their file sizes:

  • YouTube.bmp = 1520 KB
  • YouTube.png = 195 KB
  • YouTube.jpg = 106 KB

Wow! That bitmap sure is big!

Visio Files With Imported Images

Finally, we loaded the various file formats into our blank Visio drawing, and saved them so as to compare the resulting file sizes. We also “imported” an image by copying it from Internet Explorer, then pasting it in the Visio document.

The file sizes are listed below, with the increase in file size over the empty Visio drawing is shown in parentheses.

  • Visio Size Test BMP.vsd = 363 KB (352 KB)
  • Visio Size Test PNG.vsd = 257 KB (246 KB)
  • Visio Size Test JPG.vsd = 135 KB (124 KB)
  • Visio Size Test CopyPaste.vsd = 363 KB (352 KB)

The PNG and JPG files grew by 51 KB and 18 KB respectively. This is quite a bit more than the 1 KB of overhead that a simple rectangle-shape added to the file.

Clearly something is going on! Perhaps Visio’s internal compression algorithm is actually ballooning the size of the files, which are already compressed?

We see this every once in a while when we try to zip files that are in a format that is already compressed. Although I would imagine that technology has progressed over the years and this happens less often nowadays than it did in the past.

Note: The size of the copy-paste file didn’t vary from BMP to PNG to JPG. We’re not sure if that’s because of what Internet Explorer serves up on Copy, or how Visio deals with images on Paste.

Images In Other Apps

We were curious to see how Visio file sizes stacked up to other Office applications, so we ran a similar procedure in Microsoft Word 2007:

  • Word Size Test Blank.docx = 0 KB

After importing the various image formats, we had:

  • Word Size Test BMP.docx = 213 KB
  • Word Size Test PNG.docx = 205 KB
  • Word Size Test JPG.docx = 117 KB

And for reference, we remember the original sizes of the image files: bmp = 1520 KB, png = 195 KB, jpg = 106 KB.

The size of an empty Word document is 0 KB, so we didn’t have to do any difference calculations.

But again, the bitmap was significantly reduced, and the PNG and JPG files grew slightly inside of the Word. The increase in size was similar to that of the Visio. But Word seems to handle the images more efficiently. The Visio file-size-increases were more: 352 KB, 246 KB, 124 KB.

Other Considerations

Of course a complete test would investigate further. Some things we might look at:

  • Different images: lines, text, photos
  • Different JPG-compression settings
  • Save lots of images in a single file
  • Analyze with statistics, look at percentage size increases, etc.

Conclusion

I think the only conclusions we can come away with after these simple tests are:

  • Image file size correlates to Visio file size – smaller image formats like JPG will be yield smaller Visio file sizes
  • Visio isn’t stupid about potentially huge BMP file format in a stupid way – it compresses them
  • Visio doesn’t do anything overly scary to compressed image file formats (ie: your JPGs and PNGs)
  • Cutting and pasting is the same as inserting a bitmap

At any rate, computer performance is increasing, and storage costs are decreasing, so there’s nothing to get alarmed about here.

It is nice to know that BMPs get significantly compressed, and it’s also nice to know that your choice of image format has an effect on the resulting Visio file size.

If any of you have expertise or knowledge about this subject, we’d love to hear from you in the Comments section below!

Related Posts

  1. Create Clean & Tidy Visio Shapes Using Images With Transparent Backgrounds
  2. Masking Images in Visio
  3. Importing Images as Backgrounds for Tracing
  4. Importing Images as Backgrounds for Scaled Drawings
  5. Visio Tutorial: Advanced Fill Effects

14 Comments »

  • incubii says:

    A tip for the PNG files. You can use an opensource program called PNG Crush to shrink the file down as much as possible. This will save you some disk space and may even improve the performance of the document as i have seen with many PNGs included.

    PNG Crush

  • Mark Nelson says:

    Note that compression is available in Visio 2003 or later. Bitmaps were stored in all their bloated glory before that.

  • [...] Effects of Imported Images on Visio File Size [...]

  • Visio Guy says:

    Thanks Mark!

    I had a feeling I was remembering something *awful* from the past when I started researching this one!

    - Chris

  • xman says:

    Has anyone ever experienced the problem where you copy an image into Visio and it’s visible and everything appears to be fine. Then you save and close the file. Then reopen it. The image is still “there” (ctrl+a shows it being selected) but the images isn’t visible – it’s just transparent.

    This seems to only happen to jpg and png. Bmp is fine.

  • Visio Guy says:

    Hey Xman,

    I’ve noticed a difference when copy/pasting an image into Visio, vs. importing the image. I haven’t seen your problem specifically, but I have seen oddities.

    Try to see if you can Insert > Picture > From File… works better for you, instead of just pasting. You might have to save your image to a file first.

    Good luck, and let us know!

    - Chris

  • eric c says:

    a stupid tip :
    when there is a nice image with transparence in powerpoint.
    if you cut/paste to visio :transparence is gone.

    but if you cut/paste TWO images from ppt to visio : transparence is kept.

    so, when there is a nice image in ppt :
    - in PPT : I add a “empty” line behind “my” image (line with color=transparent)
    - then, I copy my image + the empty line to visio.
    and transparence is kept !

    I guess you already knew this but for me it was cool when i accidentally discovered this.

  • YossiD says:

    I am using Visio 2003, but I generally save in Visio 2002 format so that others in the office who have not been upgraded can open my files.

    As a technical writer using Word, I often have to place Visio diagrams in Word documents so I am more interested in what happens to the size of the Word document than the Visio file.

    For this test I used a 213 kB png image extracted from a pdf file. I inserted the png image onto a blank Visio page using Insert>Picture, and saved it in the following 3 ways:

    1. Save in Visio 2002 format
    2. Save in Visio 2003 format
    3. Save in visio 2003 format then resave in Visio 2002 format

    Then I inserted each Visio file in a blank Word 2003 document, first by using Insert>Object and then using Copy/Paste from Visio to Word. The results are interesting. There are three numbers for each test:

    a. Size of the Visio file
    b. Size of the Word file with Visio inserted using Insert>Object
    c. Size of Word file with Visio inserted using Copy/Paste

    Test 1: Save in visio 2002 format
    a. 2778 kB
    b. 4618 kB
    c. 3685 kB

    Test 2: Save in Visio 2003 format
    a. 245 kB
    b. 1981 kB
    c. 1987 kB

    Test 3: Save in Visio 2003 format then resave in Visio 2002 format
    a. 1840 kB
    b. 1987 kB
    c. 1987 kB

    In the final analysis it seems that no mater what I do in Visio, the Word file comes out way fatter than the original graphic. Does anyone know a way to avoid this?

  • YossiD says:

    Forgot to mention, size of an empty Word file is about 29 kB, so it’s clear that all of the bloat has to do with how Word handles Visio files that contain imported images.

  • Visio Guy says:

    @eric c,

    Thanks for the tip. I wonder if your PowerPoint to Visio behavior will change if you do a Paste Special. Perhaps different formats will give you different results.

    Also, when you say “image in PowerPoint”, are you specifically talking about bitmap images that have transparency? Or are you talking about any PowerPoint graphic in general?

  • Visio Guy says:

    Hi YossiD,

    Can you double-check that there are no “local” master shapes in the document’s stencil? This is often a place where bits get wasted in Visio.

    Go to: File > Shapes > Show Document Stencil. This stencil holds copies of any master that have been dragged into Visio from other stencils.

    Also, Visio generates a preview image that wastes space. You can turn this off under: File > Properties > Save Workspace check box.

    Visio 2007 also has File > Remove Hidden Information dialog. This has a File Size Reduction tab that might be worth exploring.

  • [...] This morning, I realized my Visio wireframe was taking longer and longer to save. Totally out of curiosity, and because I figured there may be a way to get more efficient savings, I thought about investigating on this. The marvellous thing with Internet is that it didn’t take me long, thanks to Visio guy: apparently confronted to the same issue, they ran a few tests about what Visio does with images. [...]

  • Neiyold says:

    Something to keep in mind, when converting a Visio file to a DXF or DWG the image will not be processed correctly. Typically, the shapes are fine and convert with no issue, though I have not made any effort to extensively verify this. If you need the image, then your AutoCAD file will need post-editing. If you are working with company logos, then it is best to natively draw the logo in Viso. Then you also have the added bonus of being able to do fun things with the shape(s).

  • eric c says:

    hello Visio Guy,
    I use this tip when a simple copy/paste don’t keep the transparency from ppt to vsd.

    for some image, ctrl-c/v will be enough.
    But for some others, transparency will be replaced by white color.

    So when a ctr-v loose the transparency, I add an hidden element behind the source image and then I do a new ctrl-v of the 2 images.
    and it works
    don’t ask why
    ;-)

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.