Skip to main content

Why have SVG images not yet replaced PNG on the web?

For some time, all major browsers already support SVG. I am surprised, why almost every website still uses PNGs for their site's graphics (I mean logo, icons, etc...).

Reasons for switching to SVG

Perfect display - Because SVG is a vector format, the SVGs images are always rendered sharp, regardless on display resolution. For example, they looks good in iPad hi-res displays. PNG images are blurry on such hi-res displays, if you want better results, you need to supply them in higher resolution, which is not a perfect solution (you need to maintain multiple PNG sizes for multiple devices).

Programability - it is possible to manipulate with parts of SVG in JavaScript, handle events such as onmouseover etc.., see the SVG.JS library.

But why people are staying with PNG?

Compatibility - as PNGs are just plain bitmaps, there is much higher chance they will display properly on various devices. Also, couple of months ago (April 2013), I encountered an Android phone, that could not display the SVG on a webpage, though Chrome for Android should support it (according to the link above).

Performance - SVG is more complicated, probably to takes more system resources to render more complicated image.

No hype - when there HTML5 anc CCS3 was new, there was much discussion how it should be implemented, etc, so people started to use it, just to show off how they are progressive. On the other hand, SVG spec is here already for several years. When the SVG spec was complete, then it was not possible to use it - major browsers did not support it. And nowadays, when you could use it, no one talks about it.

So I would like to start discussion:
Why SVG did not replace PNG yet? 
Do you know any sites that use the SVG?
Are you planning to use SVG on your websites?

Check out discussion for this article on Hacker News, that's the most interesting part.

Also check out Jungle Navigator, my guide to new domain extesions, so called generic top-level domains.

Comments

  1. I'm using SVG in an open-source project to display diagrams of biological processes; https://github.com/wikipathways/pathvisio.js/

    I hope it gets more traction once IE8 and Android 2.X die off.

    ReplyDelete
  2. Also take a look at the discussion forming on HN

    https://news.ycombinator.com/item?id=6470908

    ReplyDelete
    Replies
    1. Thanks, I know, I sumbitted it there, "seky" is my nickname there (from Sekera).

      Delete
  3. > Perfect display
    Nope, far from that. It's better than nothing, but not "perfect" in any meaningful way. Especially not pixel-perfect, which is a must for icons and fonts at small sizes.
    Also, gradients. Make one in Photoshop, make another in SVG, compare, burst in bloody tears when you see how horrid SVG gradients look. Scalable, yes, but perfect, not at all. (Especially fugly are contrasting colors, try black to white.)
    That's basically the reason why people en masse don't use it. PNG just looks better.

    ReplyDelete
    Replies
    1. OK, agree, "perfect" was not a perfect word.

      Yes, I meant the scallability

      Delete
    2. Can you give an example of a gradient in SVG that looks "horrid"? As a longtime SVG user, I've run into plenty of issues with SVG, but I can't recall any with gradients.

      Delete
    3. very Help Full Post. Look Some Different here at UPSC Exam

      Delete
  4. One downside of SVG is that lacks incremental display, at least in any useful sense. When I'm loading a website with PNGs (or JPEGs, or whatever), I'll see the top of the image appear, and then the middle, and then the bottom. Each image is its own "progress bar", which is pretty nice.

    (Not all bitmaps are this nice. The Windows BMP format loads bottom-to-top, for some reason. Some JPEGs, mostly old ones, are "progressive" or interlaced, and load lines out of order, so it's hard to tell when it's finished.)

    SVGs do have a kind of progressive display, in that many implementations draw objects as they're read, more or less, but you can't use this to determine how far along it is. The order of objects in the file doesn't correspond at all to their position on screen, or their quantity. You just have to wait until it doesn't draw anything new for a while, and then you assume it's finished.

    I'll still use SVGs myself, but I'm careful not to dump a bunch of objects in one file, unless I'm also prepared to load it asynchronously and show my own progress indicator.

    ReplyDelete
    Replies
    1. What kind of poverty ass internet connection are you using where you are seeing images load line by line

      Delete
    2. +1 for "poverty-ass Internet connection"

      (and I fixed that for you)

      Delete
  5. For whatever reason, Firefox does not render scaled SVGs.

    ReplyDelete
  6. What the fuuuck?? SVG vs PNG is like Batman vs Superman. Their role is different (like apples and bannanas). Starting a discussion of this is the same as talking about Ben Affleck.

    ReplyDelete
  7. the comparison looks strange to me - I would use PNG for, well images, and SVG for some dynamic diagrams that I need to change in runtime etc.

    I also use SVG for some diagrams etc (Inkscape!)

    ReplyDelete
    Replies
    1. You can use PNG for a logo, and website icons for example (and they will look better than PNGs on high resolution devices), that's what the whole article is about

      Delete
    2. My instinct would be to consider using svg for things I use gifs for at the moment. I don't think it'll ever match the fine colour gradations of a jpg or png; nor should it really.

      Delete
  8. SVG will take time to become popular. Once major browser start supporting this format SVG should take off as well.

    ReplyDelete
  9. SVG is more poprular nowadays, you don't need to make PNG. Want to share with you one great website where you can download a lot of free vector images cannypic.com I often use it when I need some quality royalty free photos.

    ReplyDelete
  10. Nice post http://www.selfcarinsurance.com

    ReplyDelete
  11. There are some highly useful products of Cisco that include Router, Networking software, Servers-Unified computing, wireless products among diversity of products. Cisco Support

    ReplyDelete
  12. Amazing post.Thanks for sharing among us.

    ReplyDelete
  13. Dell Customer care Number provide the support to their user if any one is having some problem then he or she can share your problems here.
    Dell Customer Care

    ReplyDelete
  14. Magnificent goods from you, man. I have understand your stuff previous to and you’re just extremely wonderful. I really like what you’ve acquired here, certainly like what you are saying and the way in which you say it. You make it entertaining and you still take care of to keep it smart. I can not wait to read much more from you. This is actually a tremendous website. Norton customer support

    ReplyDelete
  15. Technical support may be delivered by the different technologies depending on the situation. For example, direct questions can be addressed using telephone calls, SMS, Online chat, Support Forums, E-mail or Fax.
    Windows tech support

    ReplyDelete
  16. Informative post. It really prove useful to me.Thanks for sharing.
    Yahoo Customer Support Number

    ReplyDelete
  17. Nice post, If you have any issues that is related to Hp products so you can contact me because we provide the solution ofyour issues
    Hp customer support number

    ReplyDelete
  18. the operating system is not being able to recognize the printer. Causing your HP printer not to work. In this case, a new driver needs to be installed on the operating system to be able to recognize the printer. https://notresponding.net/

    ReplyDelete
    Replies
    1. very Help Full Post. Look Some Different here at upsc Syllabus

      Delete
  19. Spotify is the best way to listen to music on your device.it gives the main feature to create the user it,s own music. if any query to related Spotify then you can contact Spotify Customer Service

    ReplyDelete
  20. Useful Information You have the nice information thanks for sharing . If you need Asus Router Help Use Our Service.

    ReplyDelete
    Replies
    1. very Help Full Post. Look Some Different here at upsc syllabus

      Delete
  21. ..Cisco Router Customer Service
    Our highly trained service providers will make sure your problem is resolved in the quickest manner.

    ReplyDelete
  22. very Help Full Post. Look Some Different here at upsc exam

    ReplyDelete
  23. Anyone can download the Google Play Music app from the Google PlayStore and enjoy listening to music. Xbox Support

    ReplyDelete
  24. Technical support may be delivered by the different technologies depending on the situation. For example, direct questions can be addressed using telephone calls, SMS, Online chat, Support Forums, E-mail or Fax by Microsoft Paint customer service for the worldwide user.

    ReplyDelete
  25. Technical support may be delivered by the different technologies depending on the situation. For example, direct questions can be addressed using telephone calls, SMS, Online chat, Support Forums, E-mail or Fax by Microsoft Paint customer service for the worldwide user.

    ReplyDelete
  26. UC Browser is one of the best Browser. it is easily available in the market if you have any queries related to this Browser please visit here. you are really shareing such a nice information. chrome support you can visit us for more detail related to tech support.

    ReplyDelete
  27. I have understand your stuff previous to and you’re just extremely wonderful. I really like what you’ve acquired here, certainly like what you are saying and the way in which you say it. Microsoft Support have the all kinds of the tech support.

    ReplyDelete
  28. What i do not realize is actually how you are now not really a lot more neatly-favored than you might be right now. You're very intelligent. You already know therefore considerably in relation to this subject, made me for my part consider it from a lot of varied angles. Its like men and women don't seem to be involved except it is something to accomplish with Lady gaga! Your personal stuffs excellent. Always deal with it up! gmail log in

    ReplyDelete
  29. Amazing post.Thanks for sharing among us. Keep it up.
    Epson error code 0x69

    ReplyDelete
  30. If You are facing any Kind of the system issue that you are not able to fix get help by our tech experts. Our technician Will help you With support service like Software Support

    ReplyDelete
  31. The information about why SVG images not replaced into PNG is so nice and helpful for the users. I hope that such type of post you will share next time. If you face any antivirus security issues then read Kaspersky Antivirus Blog to get the best solution by the experts.

    ReplyDelete
  32. It's really nice to share such information about image not replacement problem is really so important and useful. thank you for share such type of content keep share this type of content.
    Avast Antivirus Services

    ReplyDelete
  33. Very nice post. I just stumbled upon your blog and wanted to say that I
    have really enjoyed browsing your blog posts.
    After all I’ll be subscribing to your feed and I hope you
    write again very soon!
    Flats for sale in Mashobra

    ReplyDelete
  34. Thanks for sharing such type of nice and helpful information with us. If You are facing any Kind of the operating system issue that you are not able to fix get help by our tech experts. For more information visit - https://laptopsupportnumber.co.uk/operating-system-support/

    ReplyDelete
  35. Thanks for sharing good information, If anyone faces problem regarding PC or computer, no need to worry about it you can contact easily dial toll -free +44 800 0988380 and get instant help from our certified experts. PC customer support phone number is available 24×7 at your service.
    for more information visit:- https://www.pcsupportnumber.co.uk

    ReplyDelete
  36. If any query to related Computer or PC then you can contact PC Support Number: +44 800 098 8380. we provide PC OR computer support service , if you have any problem you can contact with toll free number +44 800 098 8380.

    ReplyDelete
  37. QuickBooks Support provides instant solutions related to any issues of Payroll support, Installation support, Enterprise support,
    CRM integration support, Error troubleshooting support and Configuration support. We are 24 hours available on QuickBooks Support
    Number +44 800 098 8380 and also on Live chat support.

    ReplyDelete

Post a Comment