tag:blogger.com,1999:blog-5541414252435605845.post9000961196072728040..comments2018-02-06T23:09:43.792-08:00Comments on The Holbert Report: SVG as an imageDanielhttp://www.blogger.com/profile/06625163638446776772noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-5541414252435605845.post-61749402459705832722011-01-11T09:27:09.849-08:002011-01-11T09:27:09.849-08:00(sorry, I meant to say "SVG's own <ima...(sorry, I meant to say "SVG's own <b><image></b> element" in the previous comment... blogger stripped out the <image> since I'd written it with explicit braces instead of with '& lt;' / '& gt;')Danielhttps://www.blogger.com/profile/06625163638446776772noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-73284591156003784112011-01-11T09:23:41.592-08:002011-01-11T09:23:41.592-08:00Hi Daniel,
Thanks for the interest! Sorry for no...Hi Daniel,<br /><br />Thanks for the interest! Sorry for not being clearer about that -- SVG's own element has a few tricky quirks about how it works, so I did that separately -- and that patch landed in December. It'll make it into the upcoming beta (beta9).Danielhttps://www.blogger.com/profile/06625163638446776772noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-57738078468402115362011-01-11T07:24:34.744-08:002011-01-11T07:24:34.744-08:00Hi again,
I take all the previous post back.
I hav...Hi again,<br />I take all the previous post back.<br />I have just managed to get this working using Daniel's patch at: https://bugzilla.mozilla.org/show_bug.cgi?id=272288<br />You can find it in the currently nightly build of Firefox:<br />http://nightly.mozilla.org/ (FF4b9pre).<br />Thank you very much Daniel for your contribution there.Daniel F. Boadanoreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-6537274564274928732011-01-11T06:36:21.728-08:002011-01-11T06:36:21.728-08:00Hi all,
Did any one here succeed on displaying an ...Hi all,<br />Did any one here succeed on displaying an image that is a reference to another svg image inside an svg file? I just can't.<br />Here ( https://developer.mozilla.org/En/SVG_in_Firefox ) it states that a Gecko 2 browser is capable to do so. I am using firefox 4.08b.<br />Even a very small example like this fails...<br /><br /><br /><br /> <br /><br /><br />I would appreciate much if any one that got the svg image being displayed could give me any tip about it.<br /><br />Thanks in advance to every one.Daniel F. Boadanoreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-63243356950376393862010-10-31T17:30:56.346-07:002010-10-31T17:30:56.346-07:00Thank you for this - it was a very succinct summar...Thank you for this - it was a very succinct summary. Goodbye to Raster images and welcome to type-able Vector!Tarun Elankathhttps://www.blogger.com/profile/16569074120665954195noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-29778770982639593652010-10-22T19:06:39.448-07:002010-10-22T19:06:39.448-07:00@Chris: Good question! So the basic challenge her...@Chris: Good question! So the basic challenge here was to shoehorn something that's <i>really</i> a document into a wrapper that <i>looks</i> like an image to callers of Gecko's image APIs.<br /><br />From the browser's perspective, SVG is a document format (like HTML), with a full DOM, a frame tree, etc. That makes it qualitatively different from raster images (which are just binary blobs representing grids of pixel-values). So, the goal here was to wrap the SVG document in a layer of glue that makes it present itself as an image, so it can respond to API calls like a "real" image would. (This also involved refactoring chunks of our image APIs to make them more amenable to this wrapping, since there are a lot of methods that make sense for raster images but make no sense for SVG images.)<br /><br />One specific pain-point had to do with handling image-sizes. Clients of our image APIs have traditionally assumed that all images will have pixel-valued heights & widths. But that assumption doesn't always hold with SVG images -- they can have percent-valued heights and/or widths, which in practice tends to means "I'm whatever size you want me to be!", and that's tricky if the client doesn't specify a desired size. :) Anyway -- it took a bit of work to rework the assumptions in these cases and figuring out the Right Thing To Do in each situation.Danielhttps://www.blogger.com/profile/06625163638446776772noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-92215920180503304202010-10-22T18:36:46.789-07:002010-10-22T18:36:46.789-07:00Can you describe what the major obstacles were for...Can you describe what the major obstacles were for we image-technology ignoramuses?Chris Learyhttps://www.blogger.com/profile/09377268785052869541noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-87427226997917795952010-10-22T09:25:49.198-07:002010-10-22T09:25:49.198-07:00This is a huge improvement. Now Firefox is a SVG f...This is a huge improvement. Now Firefox is a SVG first class citizen. Thanks to all of the Mozilla Team that work on SVG. You make an amazing job.Unknownhttps://www.blogger.com/profile/17140543211012525502noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-90172620216355216142010-10-21T10:35:05.491-07:002010-10-21T10:35:05.491-07:00@Chris: Thanks for the encouragement & enthusi...@Chris: Thanks for the encouragement & enthusiasm! :) The header/title SVG file on your site is quite impressive - nice work on that!Danielhttps://www.blogger.com/profile/06625163638446776772noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-67615806775683815092010-10-20T23:29:30.460-07:002010-10-20T23:29:30.460-07:00Thanks SO much! I have basically been waiting for...Thanks SO much! I have basically been waiting for this since NCSA Mosaic added support for the img element. I have always loved the device agnostic semantic markup of HTML, the separation of style/presentation through CSS, and yet thought the implementation marred by being restricted to silly un-scalable bitmap images. When I first got excited about SVG a decade ago, I didn't think it would take this long, but the day I can finally author a single CSS theme (with graphics) for my smartphone and desktop is finally imaginable.<br /><br />I'm so excited, I jumped the gun and updated one of my little sites already: <a href="http://jamskate.ca/" rel="nofollow">http://jamskate.ca/</a>Chris Hubickhttps://www.blogger.com/profile/06530544060922414846noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-11743151030085217612010-10-20T22:23:11.281-07:002010-10-20T22:23:11.281-07:00@Anonymous:
Yeah, I noticed that too. I'm pre...@Anonymous:<br />Yeah, I noticed that too. I'm pretty sure that's a form of the <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=600207" rel="nofollow">bug I linked in the last paragraph</a>.<br /><br />For <img> elements, that bug only gets triggered at unlucky zoomlevels when a rounding error in the image-drawing code makes us think we (barely) need to tile our image. But it may really affect all image-drawing that hits the tiling codepath (tiled CSS backgrounds in particular, and accidentally-tiled-<img>-elements on occasion).Danielhttps://www.blogger.com/profile/06625163638446776772noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-73790965279251844052010-10-20T22:09:32.200-07:002010-10-20T22:09:32.200-07:00Is it just me or does the SVG as CSS background no...Is it just me or does the SVG as CSS background not scale/zoom crisply?<br /><br />(latest nightly)Anonymousnoreply@blogger.com