October 2, 2009 10:15 AM PDT

Google urges Web adoption of vector graphics

by Stephen Shankland
  • Font size
  • Print
  • 21 comments

Some seeds for overhauling Web browser graphics were planted more than a decade ago, and Google believes now is the time for them to bear fruit.

The company is hosting the SVG Open 2009 conference that begins Friday to dig into a standard called Scalable Vector Graphics (SVG) that can bring the technology to the Web. With growing support from browser makers, an appetite for vector graphics among Web programmers, and new work under way to make SVG a routine part of the Web, the technology has its best chance in years at becoming mainstream.

New Web programming standards are hard to nurture, but they do arrive, said Brad Neuberg, a Google programmer and speaker at the conference.

"First they're ignored, then they're hyped, then they're written off for dead, then they start getting real work done," Neuberg said.

Bitmap images, such as this part of Wikipedia's logo, don't scale gracefully to different sizes.

Bitmap images, such as this part of Wikipedia's logo, don't scale gracefully to different sizes.

(Credit: Screenshot by Stephen Shankland/CNET)
SVG lets this Wikipedia logo be shown as many pixels wide as you'd like.

SVG lets this Wikipedia logo be shown as many pixels wide as you'd like.

(Credit: Screenshot by Stephen Shankland/CNET)

Vector graphics describe imagery mathematically with lines, curves, shapes, and color values rather than the grid of colored pixels used by bitmapped file formats such as JPEG or GIF widely used on the Web today. Where appropriate, such as with corporate logos but not photographs, vector graphics bring smaller file sizes and better resizing flexibility. That's good for faster downloads and use on varying screen sizes.

For one example, try the SVG version of the Wikipedia logo using the page-zoom tools in Firefox, Safari, Chrome, or Opera. It's a big SVG file, but it does scale. Another real-world example: the illustrations in Google Docs use SVG, Neuberg said.

But SVG has yet to catch on widely in Web programming circles, in part because the dominant Web browser, Microsoft's Internet Explorer, can't handle them. "It's hard to deploy this when you can't use it on most of the installed base," Neuberg said.

Google and various allies are working to change that--its Chrome browser along with Mozilla Firefox, Apple Safari, and Opera support SVG--and judging by the arrival of Microsoft as a gold sponsor of the conference, things could be turning around.

Other signs: vector graphics topped the list of desired new features in a Web programmer survey. And that result helped encourage Google to release a preview version of software called SVG Web that brings SVG support to browsers that lack it.

SVG Web can hand off SVG chores to browsers that support the standard. For those that don't, it runs a Flash program to handle rendering, Neuberg said. "It will never match the performance of native support. It's not a get-out-of-jail-free card, but it does help developers and users deploy content," he said.

At the conference, Google plans to show the fruits of work with Wikipedia to use SVG Web. Actual deployment of the technology is still one or two months away, awaiting more testing.

One issue for SVG is that it's been part of the evolutionary dead end of Web programming, XHTML. But that's changing: the HTML5 standard under development right now explicitly makes room for SVG so it'll become a first-class citizen, Neuberg said.

There's another way of doing vector graphics in a browser, a standard called Canvas that's also part of HTML5. Canvas is best suited to drawing a shape on the screen that the computer then forgets about, whereas SVG is better when the shape will be manipulated because the computer keeps track of its elements and attributes, Neuberg said. For comparison, equivalents of the SVG and Canvas approaches both are available in Adobe's Flash and Microsoft's Silverlight.

Realistically, though, the bigger vector competitor today is Adobe's Flash, which is in widespread use already. And just to spice things up, there's Adobe's FXG, an SVG-based format for vector graphics within Flash.

An advantage of vector graphics in Web pages is that because they're constructed from text, search engines can see and index content, Neuberg said. For example, labels in an anatomy diagram, along with conditions and medical procedures, are relevant data that would be indexed--or for that matter translated with a service such as Google Translate.

"SVG, like HTML, can have hyperlinks coming in and going out," Neuberg said. "It's part of the Web. It integrates with other technologies, so it's not trapped in a box."

Stephen Shankland writes about a wide range of technology and products, but has a particular focus on browsers and digital photography. He joined CNET News in 1998 and since then also has covered Google, Yahoo, servers, supercomputing, Linux and open-source software, and science. E-mail Stephen, or follow him on Twitter at http://www.twitter.com/stshank.
Recent posts from Deep Tech
TweetDeck deal brings a Sherlock Holmes look
Mozilla hopes to finish Thunderbird 3.1 in April
Adobe adds raw support for newer cameras
Mozilla releases fifth Firefox 3.6 beta
Apple update supports new Canon, Nikon raw files
Plurk holding Microsoft's feet to code-copying fire
Ubuntu Linux founder stepping down as CEO
Browser makers hope WebGL will remake 3D
Add a Comment (Log in or register) (21 Comments)
  • prev
  • 1
  • next
by ddhboy October 2, 2009 10:41 AM PDT
I could have sworn that Adobe was hyping up the ability to export SVG in every version of Illustrator I've bought.
Reply to this comment
by solitare_pax October 2, 2009 4:02 PM PDT
SVG has been around for a __LONG__ time, but since mighty Microsoft and its Internet Exploiter didn't adopt it as a standard, no one used it, even though its potential to speed up download times and provide sharper graphics is huge.

On the other hand, if it had been around, then maybe Adobe's .PDF format wouldn't have taken off as it has.
by ddhboy October 2, 2009 9:18 PM PDT
Since when was 10 years a long time?
by odubtaig October 3, 2009 5:36 AM PDT
Since we're in an industry that's really only about 40/50 years old.

Microsoft had their own VML and Adobe released a plugin to display SVG graphics in IE at some point (try using it now though, hasn't been updated in years) but MS has taken more or less the same NIH attitude with SVG that it took with PNG.
by forever4now October 2, 2009 10:43 AM PDT
I'm curious if Google Chrome Frame brings SVG support along with it. If so, that would be yet another reason for IE users to install it.
Reply to this comment
by bedney42 October 2, 2009 12:40 PM PDT
Yes. It is the full version of the Webkit rendering engine used within Chrome itself.

So it contains excellent SVG support (and CSS3, and a JS engine that's 10X faster than IE8, and...)

Cheers,

- Bill
by mbenedict October 2, 2009 10:05 PM PDT
Actually WebKit only has partial implementation of SVG (neither 1.0 and 1.1).

So the irony to all this is NONE of the major browsers -- including Google's own Chrome -- actually support the full SVG spec.
by gsna_dkm October 2, 2009 10:59 AM PDT
"SVG, like HTML, can have hyperlinks coming in and going out," Neuberg said. ### HTML included in the photo? Sounds like the ultimate opportunity for clickjacking-like exploits. OUCH.
Reply to this comment
by Mergatroid Mania October 2, 2009 11:07 AM PDT
Go ahead and put SVG into your web pages. Place a note at the top of the page that says if the page doesn't look good, or you have trouble viewing parts of the page, download one of the following web browsers. Then provide links to the browsers that support SVG.

If a lot of web sites started doing this, you'd see a lot of browser downloading going on, and maybe it would force MS to release another version of MSIE that supports SVG correctly. And, just maybe, we might see a little bit of a dent in MSIEs installed base.
Reply to this comment
by Shankland October 2, 2009 12:32 PM PDT
I heard a rumor Microsoft plans to support SVG in a future version of IE. Microsoft wouldn't comment, so who knows, but at a minimum they've become much more engaged in HTML5 standardization.
by luke_marsh October 2, 2009 1:22 PM PDT
Yep that's the way to get SVG on the scene and if SVG succeeds then it could open more of a liberal flood gate for other standards. One has to be honest when your talking advanced SVG effects on the web performance is still an issue. SVG code however could be ran on a multi-core system with little code extension as diffrent bits of it could be managed by different cores and Google could compile engine SVG code much like it does with it Java script engine but with multiprocessing in mind.
Emails is another future spot for SVG Imagine having vector animated text coded into your email it could make emoticons obsolete and make UTF so yersterday.
by mbenedict October 2, 2009 10:09 PM PDT
SVG can never replace Unicode.
by odubtaig October 3, 2009 5:39 AM PDT
Isn't it part of the standard that SVG is stored in Unicode format? It's 100% XML.
by vamman October 2, 2009 11:44 AM PDT
Great but what about all of the governments, banks, and big corps forcing their employees to use a locked in version of IE6? I think the movement of SVG is great but there obviously has to be a bigger move made.
Reply to this comment
by forever4now October 2, 2009 12:22 PM PDT
If Google Chrome Frame supports SVG, then governments, banks and big corps should at least compromise, by installing it, if they can't install a second browser.

How long do they think web developers should support their crappy, out-of-date browsers?
by Mergatroid Mania October 2, 2009 12:44 PM PDT
The odds are that these companies employees will not be visiting sites that use SVG. If they are locked into IE6 it will most likely be because their internal network uses some legacy apps. Personally, if I were running a site using SVG I wouldn't be too worried about this particular group of people not being able to see my site from their work.

In our business we also have to use IE6 for the exact same reason. Lucky for us I can also use FF (which I do) for our external Internet web site viewing.
by October 2, 2009 2:40 PM PDT
SVG would be massively better for the web, reduceing sever loads a lot, as well as making it much easier to make resolution indpendant website.

Opera has supported inline SVG a little while now. This feature would mean that, for example, with just a few lines of code you could have a gradient background.
Not only this means that its easier for the web designer (like myself) it also means that rather then retrieving a seperate image file from the sever, all the data is there already. On mass (for every icon, button and effect which could be vector) this could make a huge difference to sever response times.
Lots of tiny bits add up you know!
(Its why Google invented ImageBundles for their GWT....speeds page loading up quite a bit).

Another benifit, of course, is the resulting graphics are as sharp and as colourfull as your screen can do.
SVG isnt suitable for everything, but I daresay over half the images on this page could be replaced, for example. Probably3/4.
Reply to this comment
by db2not October 2, 2009 2:42 PM PDT
example of what can be done with svg: http://www.colabopad.com
Reply to this comment
by burningbird October 2, 2009 6:14 PM PDT
It's unfortunate that Google's hosting of SVGOpen misdirects the message of SVGOpen into being something that Google is rolling out, or supporting.
Reply to this comment
by Spanwite October 3, 2009 9:21 AM PDT
"in part because the dominant Web browser, Microsoft's Internet Explorer, can't handle them"
That is an other indication if you use just MS Software, don't look outside the Box, MS gives you the best experience! MS tunnel vision!
People will stick with IE6 until those Computers not more working!
MS is like still using a carburetor or MS-dos! Don't change if it's still running.
Reply to this comment
by Police_States_of_America October 3, 2009 11:41 AM PDT
allow people upload svg files to picasa, srsly google
Reply to this comment
(21 Comments)
  • prev
  • 1
  • next
advertisement

15 sites that went kaput in 2009

Web sites launch all the time, but they also shut their doors. We highlight 15 that bit the dust this year.

Top 10 news stories of the decade

Let the debate begin: Was the iPhone more important than iTunes? Was anything bigger than Google finding a great business model? CNET offers its list of the 10 most important stories of the '00s.

About Deep Tech

Stephen Shankland, who's covered the computing industry since 1998 and was a science reporter before that, here delves into a wide range of technology trends and offers hands-on tests. His particular interests include Web browsers, cameras, standards, research, science, and start-ups.

Add this feed to your online news reader

Deep Tech topics

advertisement
advertisement

Inside CNET News

Scroll Left Scroll Right