List Info

Thread: Image Resizing?




Image Resizing?
user name
2006-05-14 00:19:31
I'm looking to resize an external image in a gadget. I'm
using Google
Pages as my gadget server. Do I need to relocate the gadget
to a server
running a PHP program or ASP Component that will do the
resizing, or is
there an XML trick I'm missing? Thanks.

-Darren


--~--~---------~--~----~------------~-------~--~----~
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-APIgooglegroups.com
To unsubscribe from this group, send email to
Google-Homepage-API-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups.google.com/group/Google-Homepage-API
-~----------~----~----~----~------~----~------~--~---

Image Resizing?
user name
2006-05-14 21:16:53
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-APIgooglegroups.com
To unsubscribe from this group, send email to
Google-Homepage-API-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups.google.com/group/Google-Homepage-API
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )