Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image Quality


BestBuyDan

Recommended Posts

I am concerned with the quality of the smaller images displayed in the products listing pages and the product description pages. Our images are 300x300 jpg's and I have the big_images contribution installed with the smaller image size set at 100x100. The quality of smaller image is very poor when compared to a 100x100 image resized with Photoshop. How does osCommerce resize an image? Is there a better algorithm or code(contribution) that can be installed?

 

You can see an example of this at:

http://www.thewebmakerscorner.com/demostor...lt.php?cPath=37

 

We have to get this resolved if we are going to keep our osCommerce cart!

 

Thanks

Link to comment
Share on other sites

Well, after hours of searching through heaps of posts, I think I found the answer.

 

Please take a look at the discussion on the following page:

 

http://www.oscommerce.com/forums/viewtopic.php...t=image+quality

 

Sort of sounds like the image problem I am having, doesn't it? Maybe his contribution will do the trick.

 

http://www.oscommerce.com/community/contri...ions,350/page,7

Link to comment
Share on other sites

  • 2 months later...

I downloaded the contribution for the image quality problems, but I do NOT have the same code listed...THIs is what the index file (in the contribution download) suggests for editing the admin/categories.php:

 

Find the code below (approx lines 313):

 

// copy image only if modified

$products_image = new upload('products_image');

$products_image->set_destination(DIR_FS_CATALOG_IMAGES);

if ($products_image->parse() && $products_image->save()) {

 

 

 

And replace it with this code:

 

// copy image only if modified

$products_image = new upload('products_image');

$products_image->set_destination(DIR_FS_CATALOG_IMAGES);

$products_image->set_resize(true);

if ($products_image->parse() && $products_image->save()) {

 

 

THIS is what I have:

 

 

<!-- left_navigation_eof //-->

313 </table></td>

<!-- body_text //-->

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

 

And now, a similar code on lines 492-94 in MY admin/categories.php:

 

// copy image only if modified

$products_image = tep_get_uploaded_file('products_image');

$image_directory = tep_get_local_path(DIR_FS_CATALOG_IMAGES);

 

Anyone have any idea what I need to do? It certainly appears that something is missing...Please, I'm frustrated beyond belief (as I'm sure a lot of you know) that I can't even get my images to display properly... :shock:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...