[thelist] Automatically Size User-Loaded Images

martin.p.burns at uk.pwcglobal.com martin.p.burns at uk.pwcglobal.com
Tue Oct 30 11:31:37 CST 2001


Memo from Martin P Burns of PricewaterhouseCoopers

-------------------- Start of message text --------------------



To:   thelist at lists.evolt.org
cc:


Subject:  Re: [thelist] Automatically Size User-Loaded Images


<ron>
  I see us basically using this as a way to limit the image size
  so that it doesn't create horizontal scroll-bars, etc.
</ron>

>If that's your primary concern, and these photos will be displayed on a
>coded-by-you site, then the quick&dirtiest approach is simply to
>[in your display pages] hardcode the image size and leave the src as a
variable, such as:

>  <img src="[pathtoimagefile]" width="400" height="265" />

mmmm XHTML.

This is OK, as long as you're sure of a given aspect ratio. If the
supplied image happens to be 500 x 500, you're in trouble.

>It's not the most professional method, because perceived image quality
often takes a
>severe nosedive when you alter actual image size in the code.

I'd thought that too, but I've been pleasantly surprised certainly by ie5+
for
Mac & PC. Take a look at my photo album (I know, another shameless
plug. Colour me a proud dad):
http://www.easyweb.co.uk/pics/morgan/
Those last few pics are all resized, none by nice round numbers (like
50%), and they're nothing like as bad as I'd expected.

Cheers
Martin


--------------------- End of message text --------------------

This e-mail is sent by the above named in their
individual, non-business capacity and is not on
behalf of PricewaterhouseCoopers.

PricewaterhouseCoopers may monitor outgoing and incoming
e-mails and other telecommunications on its e-mail and
telecommunications systems.
----------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.





More information about the thelist mailing list