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

Re: Inconsistencies when including content via the image element.

From: Jim Ley <jim@jibbering.com>
Date: Fri, 5 Jul 2002 11:42:11 -0000
Message-ID: <017401c22419$00e9cd60$ca969dc3@emedia.co.uk>
To: <ronan@roasp.com>, "www-svg" <www-svg@w3.org>

"Ronan Oger" <ronan@roasp.com>
> I have a bit of a problem with your request.
>
> Unless the image metadata has size information, how do you propose to
> properly size the image?
>
>For example, do you want the image size to be based
> on the pixel resolution of the screen? In this case, how is my perl
engine
> on a screenless server supposed to determine the size of the image
without
> aany geometric data?

Image formats (generally, and I acknowledge there may be problems with
those that do not) contain sufficient information, jpeg and png both tell
you the size of the image (in inches, cm's or whatever aswell as having
their own pixel size.

I believe there's a Image::Size module for perl which will do this for
you (I was actually using in the situation that finally made me realise
it is actually debilitating aswell as being wrong, but have since
abandoned it as I didn't like the server load.)

There's no difference between the information in a jpeg, and the
information within the the SVG file I created to demonstrate it.

Jim.
Received on Friday, 5 July 2002 07:45:17 GMT

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