Your extension will be available shortly on the Visual Studio Marketplace at this link.

Image Optimizer


Uses industry standard tools to optimize any JPEG, PNG and Gifs - including animated Gifs. Can do both lossy and lossless optimization.

4.7 Star
Visual Studio
2017, 2015, 2013
Download (432,899)
E-mail Twitter Digg Facebook
Add to favorites
Sign in to write a review
Sort by:

5 Star
by David (business engineering) | August 11 2016

This is amazing. Very handy and high in usability: not hidden, not too much in foreground. Nice done!

5 Star
by André Secco | August 02 2016

4 Star
by pavel.sommer | July 29 2016

Would be nice, if there will be support for svg (using base64) too.

5 Star
by Greg Trevellick | July 23 2016

Very easy to use and highly effective - the epitome of a great tool.

5 Star
by Miro Jeliaskoff | June 21 2016

5 Star
by mundole | February 19 2016

5 Star
by stmarti1 | December 07 2015

Where is the old "image sprite" option?

5 Star
by InvalidCast_ | October 26 2015

thank you for your wonderfull extension!

i added some other tools to your png.cmd
i understand they might not suit evereyone needs, but they compress a little bit more:

optipng %1 -out %2 -o3 -i0
pngout %2 %2 /s0 /y /v /kpHYs
pngcrush -ow -rem alla -nofilecheck -reduce -m 7 %2 chose.png
pngquant --ext=.png --force --verbose --quality=99-100 %2
advpng -z -4 %2

again, thank you very much

5 Star
by Bluesays | October 05 2015

4 Star
by itiwant | May 06 2015

Hi Mads!
the version before have a function image to base64, but this version i dont see that
i hope to see that funtion!
thank you!

Mads Kristensen May 06 2015
| Edit |

It's coming

5 Star
by bradygaster | April 21 2015

5 Star
by Sayed-Ibrahim-Hashimi | April 21 2015

Thanks Mads!

5 Star
by Cosmin Nicu Tîrpescu | August 05 2014

Foarte bun, recomand!

5 Star
by cam-D357 | July 08 2014

I love that tool ! Thanks for sharing !

5 Star
by Bob Blork | May 30 2014

nice! works very well!

5 Star
by Christiaan Rakowski | May 29 2014

5 Star
by David De Sloovere | October 09 2013

Can't get easier than this.
Mads for president!

5 Star
by Gundepuneni Mahender | September 13 2013

5 Star
by eldiosyeldiablo | August 14 2013

5 Star
by Charlie Shen | June 17 2013

1 - 20 of 55 Items   
Sign in to start a discussion

  • Error installing latest version. (3.6.94)
    1 Posts | Last post November 14, 2016
    • When trying to install the  3.6.94 version that was downloaded from the VS Gallery I get an error "This file is not a valid VSIX package".
      When I try to install from within VS2015 the package refuses to install. The next time I start VS it tries again to install again failing. 
      Previous versions have installed easily.
  • Lossy image compression results in 0 byte file
    2 Posts | Last post September 22, 2016
    • Hi Mads -
      I just ran the lossy image compression on a project's image folder. It worked correctly on most files but several ended up empty, 0 bytes: 
      7/26/2016 4:08:58 PM: Optimized powerflex1_thumb.jpg in 0.09 seconds
      Before: 11048 bytes
      After: 0 bytes
      Saving: 11048 bytes / 100%
      That's a bit too much optimization for my taste. The download speed is great but the user experience is compromised. ;-)
      I'm running VS 2015 Pro Update 3 with KB3165756 and Web Essentials 3.0.230.
    • I suspect Mads would find it easier to debug this given a copy of at least one file that triggers the problem, assuming it reproduces reliably.
  • Compress images while uploading
    1 Posts | Last post May 09, 2016
    • Hi
      I am uploading images from a webform, then resizing and saving different versions of the file. I am using BitMap images to draw new images.
      Is there a way (extension) to compress images programmatically just like you do it in this tool?
  • VS 2015 and PNG?
    1 Posts | Last post March 18, 2016
    • I think it is now working with VS 2015. My Executable is always bigger after compressing the PNG images.
  • New feature?
    1 Posts | Last post February 19, 2016
    • Do you think that this would be an acceptable addition to your tool?
      It has an open API...
  • Detected as Malware by Windows Defender?
    3 Posts | Last post February 09, 2016
    • Windows Defender detected this extension as malware.  
      Detected item: PWS:Win32/Lineage.gen!C.dam
    • Might be a false positive? 
    • TrendMicro Officescan also flagged the entire .vsix package with 3 viruses.
      May have to go to GitHub and get a diff version... 
  • Not able to run Image optimizer in VS 2013
    1 Posts | Last post September 25, 2015
    • I came across this great tool and thought of trying it with in my project which uses many images. Unfortunately after installing it on any image if i run this the visual studio crashing. It seems its working for others well. let me know if any body know the reason for this crash?
  • Output not shown in VS2015
    1 Posts | Last post July 21, 2015
    • Hello, the tool works very nice! I only don't see the output from it in the Output window. The dropdown also doesn't show an option named 'Image Optimizer'. Am I overlooking something?
      I'm using VS2015 RTM.
      Thanks in advance!
  • The remote name could not be resolved
    8 Posts | Last post May 06, 2015
    • Hi all,
      this toll is awesome. They save me a lot of time.
      But unfortunately today it just stop working
      I tried remove and install again, restart VS but noting help. Pls tell me if someone have solution for this problem. 
      Message which I got:
      ------ Image optimization started -----
      The remote name could not be resolved: ''
      D:\Current\images\ActivationInstructions01.png - using
      1 skipped. 0 optimized. Total savings 0%
      ------ Image optimization finished -----
    • This is also happening to me when I try to use the plugin.  Was there a response to this issue at all?
    • Is there a known fix for this? It appears to still be happening.
    • I'm seeing this as well:
      The remote name could not be resolved: ''
      Is there a place at yahoo to check on this?
    • Same issue here
    • Same problem here!
    • Fixed in version 3.0
    • @Mads tnx a lot! It work now!!
  • An exception occurred during a WebClient request.
    4 Posts | Last post April 21, 2015
    • Hi Mads, 
      I'm getting the following error when trying your extension.  I'm guessing it might be a firewall issue but I don't have much information to go on.  Any clue?
    • An exception occurred during a WebClient request.
    • I am having this same issue ("An exception occurred during a WebClient request"), but I don't believe it is a firewall problem.  I watched the request/response in Fiddler, and it very clearly gets a response of 200 with a JSON object in the payload describing how much the image was "smushed" and where the new image resides.  I don't see a follow-up request that actually retrieves the smushed image, though, so I'm guessing this is where the error is occurring.  Any ideas?
      Running v2.0
    • Fixed in version 3.0
1 - 10 of 43 Items