Hello Darren,
You can size an image in html with the following:
<img src="images/test.jpg"
alt="test" name="test image"
id="testimage"
height="250" width="250">
where width and height specify the size in pixels.
If you want to preserve the aspect ratio of the source image
(i.e. the
width/height), you can specify either just the width or the
height and
the
image will be scaled preserving the aspect ratio of the
source image.
This will prevent stretching of the image. For example:
<img src="images/test.jpg"
alt="test" name="test image"
id="testimage"
width="250">
Resizing "in the browser" via height/width tags
requires the full image
to be downloaded and also risks creating quality problems.
If you plan
on having really large images (e.g. 1MB) you can preprocess
the images
manually with a product like Paint or PhotoShop. If you
intend to
download a large number of images, you might want to
consider using a
freeware product like ImageMagick to preprocess the images
at a server.
I hope this helps.
Regards,
Ralph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google Homepage API" group.
To post to this group, send email to Google-Homepage-API googlegroups.com
To unsubscribe from this group, send email to
Google-Homepage-API-unsubscribe googlegroups.com
For more options, visit this group at ht
tp://groups.google.com/group/Google-Homepage-API
-~----------~----~----~----~------~----~------~--~---
|