Well we do that to an extent.

 

The thing is that image1 and image2 are used in more than just one spot.

We do make a large image and a small image of both image 1, and 2 automatically.

Just that the formatting wigs out sometimes and I am trying to control that.

 

Thanks again guys.

 

Robert P. Reil

Managing Director,

Motorcyclecarbs.com, Inc.

4292 Country Garden Walk NW

Kennesaw, Ga. 30152

Office 770-974-8851

Fax 770-974-8852

www.motorcyclecarbs.com


From: Teddy Payne [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 28, 2006 3:18 PM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] if//else algebra on image output.

 

Robert,
WriteOutput("<img src="" & objNewProduct.getImage1() & """ width=""100"" height=""100""></a><br/>" & chr(10) & chr(13));

The above line is calling an object or structure that returns the path to the image and then writeoutput makes the image 100x100 and then adds a new line at the end.

You are right to possibly want to show the real images, but a lot of ecommerce sites screen their images prior to adding products.  What I mean by screen is to resize and crop the images so that they are homogenous in their size. 

A typical approach is to find the max width and height you can have for a product image and then resize the image to fit in that size.  After that, you have the same image in its original form as a link to a full size image.  So kind of like a thumbnail view and then you can click a link to create a pop-up to see the full size.  So that would be two images for each product.  The small version and the large version.

If you just change the height or width of the image, the image will still render in its original and then it is cropped by the browser.  You can save bandwidth by providing thumbnails and then loading a larger image.  Not everyone will click the large image, so you will save bandwidth there.

Makes sense?

Teddy

On 7/28/06, Robert Reil <[EMAIL PROTECTED] > wrote:

My web guy Jared showed me that there were other variables that were removed for the ht/width incase anyone needed to see this info.

 

 

 

Robert P. Reil

Managing Director,

Motorcyclecarbs.com, Inc.

4292 Country Garden Walk NW

Kennesaw , Ga. 30152

Office 770-974-8851

Fax 770-974-8852

www.motorcyclecarbs.com


From: Jared Rapp
Sent: Friday, July 28, 2006 2:37 PM
To: Robert Reil
Subject: WAIT!!!! SORRY ABOUT THAT!!!!

 

Here was the original code…

 

WriteOutput("<img src="" & objNewProduct.getImage1() & """ " & objNewProduct.getImage1Params() & "></a><br>" & chr(10) & chr(13));

 

Here is the NEW code: Notice getImage1Params had been taken out. Sorry about that! L

 

WriteOutput("<img src="" & objNewProduct.getImage1() & """ width=""100"" height=""100""></a><br/>" & chr(10) & chr(13));




--
<cf_payne />
http://cfpayne.wordpress.com/
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-------------------------------------------------------------

Reply via email to