W3C home > Mailing lists > Public > www-svg@w3.org > November 2002

Re: Availability of image metadata

From: Dean Jackson <dean@w3.org>
Date: Wed, 13 Nov 2002 22:36:41 +1100
To: Tobias Reif <tobiasreif@pinkjuice.com>
Cc: www-svg@w3.org
Message-ID: <20021113113641.GB29066@grorg.org>

On Wed, 13 Nov 2002, Tobias Reif wrote:

> 
> Chris Lilley wrote:
> 
> 
> >It seems a rather large task to expect a single raster image DOM,
> >independent of format and independent of how the metadata got
> >shoehorned into the image file and what schema it uses, to be able to
> >get the width (or the photographer, or the focal length).
> 
> 
> Is it currently possible to get the width of a PNG/JPEG image 
> (referenced by an image element), eg via ECMA Script? If not, that might 
> be feasible, and would be useful.

This would be very useful, especially for SVG viewers that have
not yet implemented the preserveAspectRatio attribute on
images.

SVG 1.2 (coming soon!) has the mention of a feature such as
this. However, even for raster content, it isn't always
clear what the width and height are (say JPEG2000).

Dean
Received on Wednesday, 13 November 2002 06:36:57 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:23 GMT