Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

My images are huge. Changing the settings in Admin makes no effect.


Guest

Recommended Posts

The images on my website at www.klynns.com are showing up full size even though my settings in Admin are correct. I have two websites and the settings are the same. For my first site the images are just fine but for my second site, they are full size.

 

Is there a page I can check to see if maybe I knocked something out of whack?

 

Thanks!

Autumn

Link to comment
Share on other sites

Autumn,

 

The problem appears to be that your images are huge! Litterally.

 

There are size settings in the OSC cofiguration, but the idea there is to keep things uniform in size. Before you upload these images, just like with any website, the images should be sized properly and compressed.

 

I saved one of the images locally, DSC00758.jpg - this file is 749 x 749 pixels, at 150 DPI, 58 kb. That size dimension is larger than your whole site should be, and the resolution should only be 72 DPI.

 

Open each of those images in Photoshop, or any decent image paint program and reduce the image size. The files will be closer to 14 to 18 kb, and your site will be happier.

 

 

Pete

Link to comment
Share on other sites

Pete, thank you for your response.

 

However, even after changing all of my pictures to a smaller size, they still will not be uniform in my website. With my first site, all the pictures are the same height or width, whichever I set in admin. Those pictures are pretty much all perfectly square anyways.

 

With this new site, the pictures are a variety of sizes so I really need to be able to set a uniform size in admin so that the site can have some sort of symetry.

 

So I guess I am back to my original question/problem. Does anyone know where the file is that controls how OS behaves with images? Since changing the settings in admin for my images has absolutely no effect, I am thinking that something has gone amiss somewhere. Anyone?

 

Thanks, Autumn

Link to comment
Share on other sites

Autumn,

 

Sorry for the response delay.

 

It looks like you are going to have to write some fixes to the PHP code, because when I look at the source code (which I realize is HTML-ized) I see no height or width statements in your img src tags.

 

Here is a snippet of code from a "products_new.php" file that has been unmodified.

 

   <tr>
		<td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td>
		<td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td>
		<td align="right" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td>
	  </tr>

 

Notice the SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT statements. These need to be in place for your configuration to control your image size. Look at your products_new.php and product_info.php files and try inserting these. You could even get away with putting in HTML statements Height="yyy" and width="xxx" to set everything the same.

 

I'll be here to see how things turn out.

 

Pete

Link to comment
Share on other sites

Pete,

 

I really do appreciate your assistance. But I'm ready to cry! I checked those files and the one has that same code you posted. The other does not. So I took those same two files from my other site, the one that DOES work, and it still won't work! I'm getting so frustrated.....lol. I haven't messed with any files recently except Easy Populate so I don't have a clue what I could have done. Short of doing a complete new install that is. And I don't want to have to do that because I have a million and one attributes.

 

Ugh.

Link to comment
Share on other sites

Autumn,

 

I think I can understand what you're going through. Your site looks as though you're inches from having exactly what you want.

 

Ultimately resolving stuff like this is a matter of proof reading configuration settings and PHP code - and often proof reading your own work is an excersize in futility.

 

If you think it's okay, I would be more than happy to have a look at the code and settings if you think it's prudent to grant me temporary access. I will have some time available during business hours, pacific time, on Friday 12/1/2006.

 

We can also discuss this further aside from here if you would like.

 

Pete

www.digipete.com

[email protected]

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...