Re: [whatwg] SVG extensions to canvas

2009-06-05 Thread Ian Hickson
On Fri, 1 May 2009, Simon Pieters wrote: On Thu, 30 Apr 2009 21:15:04 +0200, Ian Hickson i...@hixie.ch wrote: On Thu, 25 Oct 2007, Anne van Kesteren wrote: For Opera 9.5 beta we implemented some experimental extensions to canvas involving SVGSvgElement. SVGSvgElement is supported as

Re: [whatwg] SVG extensions to canvas

2009-05-19 Thread Anne van Kesteren
On Wed, 06 May 2009 22:16:50 +0200, Oliver Hunt oli...@apple.com wrote: That svg hasn't got intrinsic sizes, so it cannot be rendered on a canvas. This doesn't preclude the use of svg with intrinsic sizes, that are given only by width/height attributes on svg. That's really really bad, as that

Re: [whatwg] SVG extensions to canvas

2009-05-06 Thread Giovanni Campagna
2009/5/5 Robert O'Callahan rob...@ocallahan.org: On Tue, May 5, 2009 at 4:35 AM, Giovanni Campagna scampa.giova...@gmail.com wrote: What is embed used for? Flash and videos. Both have intrinsic sizes What is object used for? Videos, Java applets and Silverlight. They all have intrinsic

Re: [whatwg] SVG extensions to canvas

2009-05-06 Thread Oliver Hunt
SVG images often don't have an intrinsic size. What's the intrinsic size of this image? svg xmlns=http://www.w3.org/2000/svg; linearGradient id=g x1=0 y1=0 x2=1 y2=0 stop stop-color=red offset=0/stop stop-color=lime offset=1/ /linearGradient rect x=0% y=0% width=100% height=100%

Re: [whatwg] SVG extensions to canvas

2009-05-05 Thread Giovanni Campagna
2009/5/5 Robert O'Callahan rob...@ocallahan.org: On Mon, May 4, 2009 at 7:26 AM, Giovanni Campagna scampa.giova...@gmail.com wrote: svg has an intrinsic size (like video,img, and embed/object), the other have not. video and img usually have intrinsic sizes, but embed/object/iframe usually

Re: [whatwg] SVG extensions to canvas

2009-05-05 Thread Robert O'Callahan
On Tue, May 5, 2009 at 4:35 AM, Giovanni Campagna scampa.giova...@gmail.com wrote: What is embed used for? Flash and videos. Both have intrinsic sizes What is object used for? Videos, Java applets and Silverlight. They all have intrinsic sizes. In principal, maybe they do, but typically

Re: [whatwg] SVG extensions to canvas

2009-05-05 Thread João Eiras
SVG images often don't have an intrinsic size. What's the intrinsic size of this image? svg xmlns=http://www.w3.org/2000/svg; linearGradient id=g x1=0 y1=0 x2=1 y2=0 stop stop-color=red offset=0/stop stop-color=lime offset=1/ /linearGradient rect x=0% y=0% width=100% height=100%

Re: [whatwg] SVG extensions to canvas

2009-05-04 Thread Anne van Kesteren
On Thu, 30 Apr 2009 21:15:04 +0200, Ian Hickson i...@hixie.ch wrote: As far as I can tell this doesn't require any changes to HTML5, since the same applies here as applies to a regular img, right? Maybe you misunderstood, but the request was not about img referencing SVG, but passing an

Re: [whatwg] SVG extensions to canvas

2009-05-04 Thread Giovanni Campagna
2009/5/4 Oliver Hunt oli...@apple.com: On May 4, 2009, at 6:38 AM, Anne van Kesteren wrote: On Thu, 30 Apr 2009 21:15:04 +0200, Ian Hickson i...@hixie.ch wrote: As far as I can tell this doesn't require any changes to HTML5, since the same applies here as applies to a regular img, right?

Re: [whatwg] SVG extensions to canvas

2009-05-04 Thread ddailey
On Thu, 30 Apr 2009 21:15:04 +0200, Ian Hickson i...@hixie.ch wrote: As far as I can tell this doesn't require any changes to HTML5, since the same applies here as applies to a regular img, right? Anne van Kesteren replied: Maybe you misunderstood, but the request was not about img referencing

Re: [whatwg] SVG extensions to canvas

2009-05-04 Thread Anne van Kesteren
On Tue, 05 May 2009 00:16:50 +0200, ddailey ddai...@zoominternet.net wrote: Maybe I misunderstood (or, more precisely, I am about to state my probable misunderstanding): Does this mean for example, that the author could take a chunk of svg code or its equivalent and pass it to

Re: [whatwg] SVG extensions to canvas

2009-05-04 Thread Robert O'Callahan
On Mon, May 4, 2009 at 7:26 AM, Giovanni Campagna scampa.giova...@gmail.com wrote: svg has an intrinsic size (like video,img, and embed/object), the other have not. video and img usually have intrinsic sizes, but embed/object/iframe usually don't. svg often does and often does not. Rob --

Re: [whatwg] SVG extensions to canvas

2009-05-01 Thread Simon Pieters
On Thu, 30 Apr 2009 21:15:04 +0200, Ian Hickson i...@hixie.ch wrote: On Thu, 25 Oct 2007, Anne van Kesteren wrote: For Opera 9.5 beta we implemented some experimental extensions to canvas involving SVGSvgElement. SVGSvgElement is supported as image argument to both drawImage and

Re: [whatwg] SVG extensions to canvas

2009-04-30 Thread Ian Hickson
On Thu, 25 Oct 2007, Anne van Kesteren wrote: For Opera 9.5 beta we implemented some experimental extensions to canvas involving SVGSvgElement. SVGSvgElement is supported as image argument to both drawImage and createPattern. (An HTMLImageElement pointing to an SVG element is also

Re: [whatwg] SVG extensions to canvas

2007-10-27 Thread ddailey
: Devi Web Development [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 27, 2007 12:41 AM Subject: Re: [whatwg] SVG extensions to canvas While you could say a raster image has an intrinsic size (I have no idea what the formal definition of this phrase is), SVGs *explicitly* state

Re: [whatwg] SVG extensions to canvas

2007-10-27 Thread Vlad Alexander (xhtml.com)
Daniel wrote: SVGs *explicitly* state their size So do raster images. Daniel wrote: To change the size, you would actually be violating the content of the image file itself. But that is exactly what SVG editors do - they let users scale the SVG images. Any application that does a thumbnail

Re: [whatwg] SVG extensions to canvas

2007-10-27 Thread Anne van Kesteren
On Sat, 27 Oct 2007 15:44:39 +0200, Vlad Alexander (xhtml.com) [EMAIL PROTECTED] wrote: Any application that does a thumbnail preview of an SVG image must scale the image. If it's okay to scale images for thumbnail previews, why is it not okay for scaling inside the IMG or OBJECT element?

Re: [whatwg] SVG extensions to canvas

2007-10-26 Thread Devi Web Development
That would presumably because of the intrinsic size Anne referred to. SVG's contain scaling information; the size is designated in the image file. --- Daniel Brumbaugh Keeney Devi Web Development [EMAIL PROTECTED] ---

Re: [whatwg] SVG extensions to canvas

2007-10-26 Thread Vlad Alexander (xhtml.com)
Hi Daniel, Sorry, I still don't get it. A raster (bitmap) image, which _isn't_ really designed to scale, has intrinsic size yet it is scaled by the IMG's width and height attributes. Why isn't an image that _is_ designed to scale not scaled by the IMG's width and height attributes? Regards,

Re: [whatwg] SVG extensions to canvas

2007-10-25 Thread Vlad Alexander (xhtml.com)
Anne, on a semi-related topic, can you please help me understand why Opera does not scale the SVG image when loaded via IMG element? Here is a test page: http://xhtml.com/misc/svg-img.htm Regards, -Vlad http://xhtml.com Original Message From: Anne van Kesteren Date: