Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
Like Tree3Likes
  • 1 Post By sasha_bolcina
  • 1 Post By sasha_bolcina
  • 1 Post By timbo89

Thread: Using SVG in websites

  1. #1
    Senior Member timbo89's Avatar
    Join Date
    May 2015
    Location
    Adelaide, South Australia
    Posts
    126
    Member #
    49722
    Liked
    26 times

    Question Using SVG in websites

    I've recently started converting whatever i can to SVG, but i've noticed it's not common practice, is there a reason for this?

    I mainly do it for icons and logos, it makes everything a lot more flexible, you can re-size without worrying about images looking stretched, and for simple images, they are a lot smaller (file size) than jpg, gif and png.

    As an example, North East Counselling - Counselling in Adelaide's Northern suburbs. -- all of the icons down the bottom, and the logo on the right are SVG.

    thoughts?

  2.  

  3. #2
    Senior Member sasha_bolcina's Avatar
    Join Date
    Sep 2014
    Location
    Serbia
    Posts
    274
    Member #
    40099
    Liked
    47 times
    Just my opinion...
    Yes, it helps logos to display well on zoom... everything you can save as vector. But real images are too complex and more vectors means more processor power to render them. They are smaller in size but need to be recalculated on user machine.
    If you never have customers as bank, social, government and similar dinosaurs who are demanding everything should work well in IE8 too, you can use vector images. I'm not so lucky
    My trick is to use larger images for IE and set size in css. They are perfect on zoom For non IE I'm using SVG for logos.

  4. #3
    Senior Member Vapr_Arts's Avatar
    Join Date
    Oct 2013
    Location
    California
    Posts
    1,930
    Member #
    37412
    Liked
    544 times
    Ive started using svg as well..

    Im curious do you save the img as an SVG and then use the img src to display it? Or do you take the code from the SVG and paste that into your html? The latter would cut down on server requests wouldn't it?


    Sent from my iPhone using Tapatalk

  5. #4
    Senior Member sasha_bolcina's Avatar
    Join Date
    Sep 2014
    Location
    Serbia
    Posts
    274
    Member #
    40099
    Liked
    47 times
    I'm using svg in src and large image for IE8 in next way:
    <img src="image.svg" onerror="this.onerror=null;this.src='image.png';" />

    First I make svg in illustrator.

  6. #5
    Senior Member timbo89's Avatar
    Join Date
    May 2015
    Location
    Adelaide, South Australia
    Posts
    126
    Member #
    49722
    Liked
    26 times
    Quote Originally Posted by sasha_bolcina View Post
    I'm using svg in src and large image for IE8 in next way:
    <img src="image.svg" onerror="this.onerror=null;this.src='image.png';" />

    First I make svg in illustrator.
    I was going to have a look for a backwards compatibility fix for that today... this should do nicely.


    Vapr_Arts; i save as an SVG file and then link to that, it would cut down on requests, but it would increase the page load time doing it the other way. (i think... i could be wrong :P)
    Vapr_Arts likes this.

  7. #6
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    I can't speak for others, but I don't know how to make an SVG yet. My version of Photoshop (CS3) doesn't do it, and I'm a developer so I don't know what else is out there.

    That may be a reason other people share as well.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Tags for this Thread

All times are GMT -6. The time now is 01:36 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com