Re: Inconsistencies when including content via the image element.

"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 UTC