ISSUE-2021: Bounding box of <image> subject to aspect-ratio preservation undefined
image-bbox
Bounding box of <image> subject to aspect-ratio preservation undefined
- State:
- OPEN
- Product:
- SVG 2
- Raised by:
- Cameron McCormack
- Opened on:
- 2008-07-18
- Description:
- The spec doesn't really define what the bounding box of an <image> is. The non-obvious case is when preserveAspectRatio="" is set so that the image doesn't take up the whole area specified on the <image> element.
Test:
http://dev.w3.org/SVG/profiles/1.1F2/ua-tests/image-bbox.svg
In Firefox 3 and Opera 9.5, the bounding box is [0,0,400,400]. In Batik 1.7, it's [100,0,200,400]. I suppose I would prefer the latter, since it lets you determine the aspect ratio of the image from script.
- Related Actions Items:
- ACTION-2455 on Cameron McCormack to Propose a number of different solutions to solving the problem of extracting the width and height of an image, and what the bbox should be, in ISSUE-2021 - due 2009-02-19, open
- Related emails:
- Minutes Feb 12, 2009, telcon (from anthony.grasso@cisra.canon.com.au on 2009-02-13)
- Agenda Feb 12, 2009, telcon (from ed@opera.com on 2009-02-12)
- Minutes, SVG Nuremberg Face-to-Face Day 1, Thursday 21 August 2008 (from anthony.grasso@cisra.canon.com.au on 2008-08-22)
- Agenda, August 14th, 2008 (from andrew.emmons@quickoffice.com on 2008-08-14)
- Agenda August 7th, 2008 telcon (from andrew.emmons@quickoffice.com on 2008-08-06)
- Agenda July 24, 2008 telcon (from ed@opera.com on 2008-07-24)
- Re: ISSUE-2021 (image-bbox): Bounding box of <image> subject to aspect-ratio preservation undefined [SVG Tiny 1.2] (from cam@mcc.id.au on 2008-07-22)
- Re: ISSUE-2021 (image-bbox): Bounding box of <image> subject to aspect-ratio preservation undefined [SVG Tiny 1.2] (from ed@opera.com on 2008-07-22)
- Re: ISSUE-2021 (image-bbox): Bounding box of <image> subject to aspect-ratio preservation undefined [SVG Tiny 1.2] (from cam@mcc.id.au on 2008-07-19)
- ISSUE-2021 (image-bbox): Bounding box of <image> subject to aspect-ratio preservation undefined [SVG Tiny 1.2] (from sysbot+tracker@w3.org on 2008-07-18)
Related notes:
[heycam]: ASV returns (0,0,400,400) for the test case.
21 Aug 2008, 10:55:34Display change log