Slashdot Mirror


Firefox 1.1 Plans Native SVG Support

Spy Hunter writes "The Scalable Vector Graphics format has yet to take off on the web, perhaps due to a small installed base of SVG-enabled browsers. That could soon change as the latest Firefox 1.1 nightly builds have started coming with native SVG support compiled in and enabled by default. If this feature makes into the Firefox 1.1 release (which is not certain, but likely, as the developers want it to happen) it will increase the number of web users who have an SVG renderer installed. But perhaps more interesting than that is the possibility of mixing SVG graphic elements directly into the markup of regular XHTML pages, freeing vector graphics from the small rectangle of a browser plugin and opening up a host of exciting new possibilities for web developers. This is enabled by the integration of SVG directly into the Gecko rendering engine, instead of as a browser plugin. With such a useful web developer feature available only in Firefox, could we soon start seeing websites asking their users to download Firefox to get the best browsing experience?"

36 of 415 comments (clear)

  1. More info... by bridgey655 · · Score: 4, Informative

    Take a look at http://www.w3.org/Graphics/SVG/About.html for more information on SVG.

  2. Re:What is SVG? by Anonymous Coward · · Score: 2, Informative

    SVG stands for Scalable Vector Graphics. JPEG is a bitmap based format, storing the position and colour of pixels, a vector format on the other hand stores information in terms of lines, curves, surfaces, etc. so is scalable whilst retaining quality.

  3. Re:Excellent by spectre_240sx · · Score: 5, Informative
    Well, you're a little bit off there. HTTP was never Hyper Text Transfer Protocol. It's HyperText Transfer Protocol. Subtle, but it makes a big difference.

    hypertext

    In computing, hypertext is a user interface paradigm for displaying documents which contain automated cross-references to other documents called hyperlinks. Selecting a hyperlink causes the computer to display the linked document within a very short period of time.

    A document can be static (prepared and stored in advance) or dynamically generated (in response to user input). Therefore, a well-constructed hypertext system can encompass, incorporate or supersede many other user interface paradigms like menus and command lines, and can be used to access both static collections of cross-referenced documents and interactive applications. The documents and applications can be local or can come from anywhere with the assistance of a computer network like the Internet. The most famous implementation of hypertext is the World Wide Web.

    The term "hypertext" is often used where the term hypermedia would be more appropriate.
  4. Re:What graphic editors support SVG? by torpor · · Score: 2, Informative

    inskcape, sodipodi. two very wonderful examples of open source producing very useful tools.

    i use both, personally. SVG has been a primary format target for me as a programmer for a couple years now ..

    --
    ; -- the corruption of government starts with its secrets. a truly free people keep no secrets. --
  5. Re:What is SVG? by MP3Chuck · · Score: 4, Informative

    They're not really in a position to be better than a JPG, in the cases where a JPG would be used to display an images with thousdands or millions of colours.

    On the other hand, SVG offers an easier (or what seems should be easier) method of dynamically-generating images like charts and graphs. Combined with some javascript (think XMLHttpRequest), you can change and interact with these graphs in realtime. Along with vector graphic's "infinite" resolution you've got a lot of powerful options for graphing alone.

  6. Re:What is SVG? by Creepy+Crawler · · Score: 5, Informative

    ---Why its better than JPEG?

    Well, they're both good for different things.

    JPEGS are simple raster images. A jpeg and a bitmap are one in the same (with jpeg having good compression). Simply, it comes down to this bit is this color, this bit is this color, and this bit is this color. If you magnify raster images, you end up with blurred and horribly pixellated images that have almost no resemblance of the original.

    A SVG (and similar technologies) uses vector graphics. The best way to explain this is thus: Graph a line Y=X on a xy coordinate plane. You end up with a 45 degreee angle. Now, if you were to view a portion between 0 and 10^-100(X) and 0 to 10^-100(y) it's still going to be a line. It's not going to be a stairstep pixelated crap.

    Probably the best usage of SVG's would be simple images made for dramatically inbcreasing size (like icons in KDE) or other size-variation.

    The only way to do pretty increasing size icons now are to shim a javascript to display 6 or so jpegs that were manually sized. These do not account for resolution on your screen.

    Hopefully, Ive made clear what these things are.

    --
  7. Re:What graphic editors support SVG? by cei · · Score: 3, Informative

    Adobe Illustrator

    --
    This sig intentionally left justified.
  8. Re:"download Firefox to get the best browsing..." by geekboy642 · · Score: 3, Informative

    They'll only hit the back button if they can tell the page is obviously borked. If the webmister has done his/her/its work properly, the page will degrade to a level that IE can handle, without becoming craptastic.
    Ex: Implement SVG as a bandwidth savings measure, then keep static PNG/GIF images around for when IE shows up. That's why the webserver is told which browser is visiting, IIRC.

    --
    Just another "DOJ fascist authoritarian totalitarian bootlicker" -- Zeio
  9. Re:wasn't this in kde 3.2? by Klivian · · Score: 2, Informative

    Verify you got something like kdegraphichs-ksvg installed. And make sure in settings->configure Konqueror the file association for svg are set to embedding in ksvgplugin.

  10. Re:Excellent by NoMoreNicksLeft · · Score: 3, Informative

    Picking on the wrong people. Unlike Flash, SVG isn't some binary kludge. Which means that by using CSS properly, the browser will actually be able to render non-SVG alternatives with little trouble (not even lame javascript browser/plugin detectors).

  11. Look at Greasemonkey by bstadil · · Score: 2, Informative
    being able to cull certain elements would be a great ability for Gecko

    Look at Greasemonkey, You can do this today in FF

    --
    Help fight continental drift.
  12. Re:Firefox only? not for long... by Metaphorically · · Score: 2, Informative

    There already is one. XAML iirc. XAML is expected to be an important part of Avalon. I haven't read that much on it, but with buzz around Avalon lately, maybe XAML gets split out and promoted separately as well. That would lead to more fragmentation in what appears to be a market being choked by alternatives.

    --
    more of the same on Twitter.
  13. Re:What graphic editors support SVG? by Metaphorically · · Score: 3, Informative

    SodiPodi is a native SVG editor. ImageMagick and the Gimp also have some SVG support.

    --
    more of the same on Twitter.
  14. Re:"only in Firefox" - NOT by Zontar+The+Mindless · · Score: 3, Informative

    SVG-enabled builds of Mozilla have been available for about 4 years.

    The reason for the excitement (and SVG soon to be switched on by default in FireFox) is a new SVG backend which is supposedly much better, although the old one always worked just fine for me.

    --
    Il n'y a pas de Planet B.
  15. Re:What is SVG? by Anonymous Coward · · Score: 1, Informative

    Probably the best usage of SVG's would be simple images made for dramatically inbcreasing size (like icons in KDE) or other size-variation.

    The best use of SVG would actually be structured graphics, something not possible with any of the current bitmap formats. You could have some parts of your drawing scale independently of others. Or style your drawing based on CSS so it picks up the site theme. You could have dynamically updating statistics that let you actually select percentages because the percentages are text fields. There are many, many very useful things you can do with structured graphics that are clumsy and complicated to do right now. And don't forget, SVG lets you use bitmap images too (using the "image" element), so you can easily cobble together a structured drawing that's bitmap based using SVG as well.

    Case in point, at work I'm currently building a web-based floorplan viewer that can highlight various surfaces and floorplan items based on UI events, and give information about them. I ended up designing it so the floorplans get generated into SVG server-side, with the structure embedded using "g" group elements with various classes indicating the sort of element they are, and an actionscript importer/renderer in flash that deals intelligently with that content (so you can select a desk and instantly see which employee sits at it, for example). Ofcourse, I had to write my own SVG class, so the time invested isn't worth it for most situations. But if there was good support in the browser for dealing with SVG files in an intelligent and dynamic way without having to write a ton of code in something like flash, it would produce a waterfall of new and innovative web apps.

    Dynamically increasing icons are nice eye candy, but they are not even the tip of the iceberg when it comes to what would become possible if SVG had decent support in the browser.

  16. Re:"only in Firefox" by telbij · · Score: 2, Informative

    What would make a huge difference in the adoption of SVG would be if adobe post-acquisition makes the flash team incorporate native SVG support in flash

    Yes, but that would be SVG is name only, and it wouldn't do anything that Flash can't already do... The whole point of SVG support is that it comes out of the bounding box and into the CSS/HTML/Javascript.

  17. Re:Mixing SVG into XHTML: Standard? by High+Hat · · Score: 3, Informative

    since SVG is XML-based and XHTML provides a way to include any other XML-conformant language in a special element, yes, this is standard and any XHTML compliant browser that doesn't do SVG will simply ignore it...

  18. Re:What graphic editors support SVG? by mughi · · Score: 2, Informative
    For a fairly comprehensive list of editors and converters check out the W3C SVG Implementations

    Actually, that list is fairly out of date. The last content dates are from 2002, and there's no mention yet of Inkscape, that came on the scene over a year and a half ago.

  19. Re:Please: SVG Maps by Jeffrey+Baker · · Score: 3, Informative
    You can already get very complete US map data for free from the government. The map data providers' grip on the market is fairly tenuous, and rests on the perception that, like Edgar Online, they provide added value beyond what the government gives you. But, like Edgar Online, the government's data offering will eventually be so complete as to render the "value added" services moot.

    The only thing left to wonder is will it take 2 or 20 years?

  20. Re:Opera by interiot · · Score: 4, Informative
    The SVG Tiny spec is pretty short and concise, especially the sections about scripting and animation:
    • 16. Scripting

      SVGT [SVG-Tiny] does not support scripting. SVGB [SVG-Basic] allows optional support of scripting, and includes all of the language features from SVG 1.1 to support scripting.

    • 17. Animation

      Both SVGB and SVGT support the full set of SVG 1.1's declarative animation features:

      The language features to support animation through scripting and DOM are available in SVGB. SVGT only supports declarative animation.

      SVGB and SVGT allow implicit targeting of parent elements, and targeting elements using the 'xlink:href' attribute.

      SVGB and SVGT support linear, spline, paced and discrete animations.

  21. Well... SVG Tiny vs SVG Basic by Animaether · · Score: 3, Informative

    SVG tiny = mobile phones
    SVG basic = PDAs
    SVG = personal computers

    And if you'd checked this page :
    http://www.w3.org/TR/SVGMobile/#sec-eleind, which is Google hit #1 for 'svg tiny', you would see the differences between SVG tiny and SVG basic in terms of supported elements, styles (further down), etc.
    In addition, anywhere where SVG basic at least reads "n/a", that's a feature that should be in SVG full.

  22. Re:And... the big news by Mattwolf7 · · Score: 2, Informative
    http://validator.w3.org/check?uri=www.slashdot.org

    Do you ever use Firefox? Have you ever had the left hand side bar overlap the comments and article?

  23. Opera has it already by perler · · Score: 3, Informative

    as almost always, opera had it before ;P

    1. Re:Opera has it already by kbrosnan · · Score: 2, Informative

      Opera did not have it before, see my comment in this article. Cliffnotes: SVG work on Mozilla dates back to at least 2000 and Official builds of Mozilla 1.0 w/ SVG were available in 2002.
      http://developers.slashdot.org/comments.pl?sid=147 981&cid=12399773

      --
      These people look deep within my soul and assign me a number based upon the order I joined. -Homer Simpson
  24. depends... by bundaegi · · Score: 3, Informative
    However, what does happen is that you may not have enough "lines" to display well at a larger resolution. What looked good with 200 lines at a small resolution may look like total crap at a high resolution.
    Depends how you define your path data (how you describe the curves that link your points). SVG defines more than straight line segments. Say, instead of your 200 lines, you may only need two curved segments which you can zoom in as much as you want.

    From Appendix A: SVG Requirements

    [...] Paths can be made up of any combination of the following:

    • Straight line segments
    • Cubic bezier curved segments
    • Quadratic bezier curved segments
    • Elliptical and circular arcs
    • No other curve types (Other curve types such as splines or nurbs are either technically very difficult, industry-specific and/or have not established themselves as industry standards as much as beziers.)
    You may want to check tools like autotrace and their output if you're not entirely convinced ;-)
    --
    bundaegi is good for you
  25. Re:I would kill for SVG in schema by Saeger · · Score: 2, Informative

    DBDesigner4 is opensource and does arbitrary scaling just fine...

    --
    Power to the Peaceful
  26. Re:And... the big news by Anonymous Coward · · Score: 5, Informative

    CTRL+plus, CTRL+minus (increase font size, decrease font size) corrects the glitch without reloading and, unlike reloading, every time.

  27. Re:Please: SVG Maps by jp10558 · · Score: 2, Informative

    Have you ever looked at maps24.com? I find that to be the most technically impressive (and supports the most countries) map service that I've seen so far, but also, less reliable.

    --
    Opera, Proxomitron-Grypen,GPG 0x0A1C6EE3
  28. Re:Accept Header by Metaphorically · · Score: 2, Informative

    Hard to say. The discussion around bug #240493 makes it sound like image/svg+xml (the MIME type for SVG) might not even be in the Accept Header. To me that sounds very very odd. It also makes it impossible to decide simply based on the accept header whether or not to serve SVG. This means client side scripts (to detect support) and another trip to the server (to get the appropriate file).

    --
    more of the same on Twitter.
  29. Re:"only in Firefox" by Xugumad · · Score: 2, Informative

    Usefully, with the <object> tag, you can specify alternative objects to render. So you can provide a SVG, and a PNG to render instead, then a GIF to render instead, then a plaintext alternative.

  30. Re:Developers dictating users' browsers? by Anonymous Coward · · Score: 1, Informative

    With the continual complaints I see about people irritated by sites that use features only supported by IE, and that cause the page to render incorrectly in other browsers, why would developers using Firefox-only features be any different or better?

    The article submitter borked it up, because SVG is not a Firefox-only feature: it will also be present in all the other Gecko browsers, it's already (partially) supported in Opera, and if it's not in KHTML already then it will be soon - which will bring in just about every other Linux and Mac user. The only browser with no plans for native SVG support is - you guessed - Internet Explorer.

    Why the fuck should I, as a web designer, let Microsoft dictate what features I use?

  31. Re:It's only OK if it's us. by cahiha · · Score: 2, Informative

    SVG could become the Ogg Vorblis of graphic formats. It's out there, but arrived too late and no one much cares.

    It took MP3 a decade to catch on, with no competition; Ogg Vorbis has pretty good commercial support already after much less time. I wouldn't view it as a failure.

    SVG actually has a better chance: it fulfills a real need that none of the existing alternatives (including Flash) address.

  32. Re:Will it fix the memory leak? by ssj_195 · · Score: 2, Informative

    I've heard from numerous sources that the memory leaks (there's not just one, apparently) have been greatly ameliorated (if not outright fixed) in the developmental versions, and that we'll be seeing these in the 1.1 release.

  33. Re:"only in Firefox" - NOT by mrchaotica · · Score: 2, Informative
    The reason for the excitement (and SVG soon to be switched on by default in FireFox) is
    The reason for the excitement is the fact that it's going to be switched on by default.
    --

    "[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz