]> Something Witty Goes Here

codedread

Posts Tagged ‘SVG’

Inkscape Bug with Embedded Rasters

Wednesday, August 27th, 2008

Imagine for a moment:

  1. Joe User knows nothing about the SVG format other than it’s an image format.
  2. Starts a new document in Inkscape
  3. Imports a raster image (PNG) from the hard drive
  4. Saves image as SVG
  5. Uploads the SVG file to a clip art website
  6. Is baffled why the image displays fine on his computer in the browser but is blank for everyone else

Yes this could really happen. So how do we fix it?

  • Warn during Import stage of local references?
  • Warn during Save stage of local references?
  • Embed raster as a data: url in the SVG source (breaking link with local file)?

Parameterizing SVG and HTML

Friday, July 25th, 2008

Hallvord R.M. Steen (an Opera employee and member of the HTML WG) was kind enough to create a bug regarding an issue I had raised a few months back. It is currently not possible inside an embedded SVG to determine the parameters sent in from HTML:object if the two documents are on different domains. This appears to be a hole in the HTML4 spec, which doesn’t really address cross-domain security concerns for the HTML:object element. Click To Read More...

SVG in Flash

Thursday, July 10th, 2008

Shelley has a good long read about web standards, Silverlight, etc. I haven’t yet installed Silverlight (I’m on Linux most of the time) so I can’t even look at the effect everyone’s getting all gooey about over at the Hard Rock Cafe site. Maybe one day I’ll get around to it. Unless it’s truly 3D effect, I have a hard time believing that the effect can’t be done using SVG and SMIL and made to work in 3 of the 4 major browsers today. And this with standards that have been around for more than half a decade. So there. Nyah.

Speaking of plugins, I’ve been watching this guy continue to improve his SVG viewer (a SWF file that runs in Adobe’s Flash player) with about an update per week. Interesting idea (which has been pursued before incidentally). I’ll be really impressed if he can get the thing to a point where SMIL and scripting can be implemented.

Still, nothing beats some type of native support. In the meantime, I’d even accept ‘native’ plugin support from the big stick-in-the-muds. I still haven’t ruled out the idea that one day in the future, the Silverlight or Flash plugins might suddenly be able to render SVG directly, with no translation step in between. Here’s hoping for Flash 11 and Silverlight 3… Why not? They both already support a scripting engine, interactivity, XML parsing, animation, vector graphics, gradients, etc. Hm, why not, indeed.

Doctyping SVG

Tuesday, July 8th, 2008

I had the idea within the SVG IG to use Google Doctype to build up SVG reference documentation (better than what is currently at wiki.svg.org), since DocType is supposed to be all about the “open web stack”. Since the articles are copyright Google but licensed under the Creative Commons license, I figure this can’t hurt if Google turns all evil on us one day.

However, any time I’ve experimented with Doctype has shown that the project isn’t quite ready yet for primetime. I base this on the fact that every time I try to submit a change, I get a long delay and then a 502 error. Mark has assured me they are working on both short term and long term solutions to this problem. He also offered to give me offline commit access to add SVG articles (and even tests) en masse to Doctype. That was a couple weeks ago, maybe now that holidays are over this can become reality? :)

codedread codedread