Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Icon Problem


ryanfc

Recommended Posts

Ok I have searched the forums and found the posts that say change the height to 0 for small images. I have done that and made the width set at 100. Yet I still have awful looking product icons. I am using the form where you add products to upload the photos and I am uploading .jpgs. You can view the site here: http://www.storytellin.com/catalog/ does anyone else have any ideas on what to do or why my product icons look so bad. (the big full versions look fine)

 

thanks for any help.

Link to comment
Share on other sites

Ok I have searched the forums and found the posts that say change the height to 0 for small images. I have done that and made the width set at 100. thanks for any help.

according with the html specs you should have a valid width and height with the <img> tag. 0 is invalid.

Link to comment
Share on other sites

I can't even view your site right now - let us know when you have it up and running

 

 

sorry about that was messing with stuff and of course it didn't like it. It has been fixed and you can now view it.

Link to comment
Share on other sites

i took the 0 out and left it blank...still looks crappy

I see, so are you talking about the distortion? If you set it to 0 or blank the tep_image function rely on the "calculate image size" which is set to true in your case and so it will attempt to resize the image. The problem is it cannot take care of the distortion as the final width (with height=0 or blank) can be greater than the actual image width.

 

Use one of the thumbnailer contributions for this to eliminate the distortion and to optimize the bandwidth.

Link to comment
Share on other sites

Honestly, I have had the same problem - the problem lies in how the web browser handles this - it is a limitation OSC has without adding support for thumbnails, and resizing and optimizing - I had a site that used line drawings, and they where trashed in the image view.

 

My simple fix was to add a thumbs directory for the modules/new_products.php - but I was not so worried about the product view, that was ok.

 

. tep_image(DIR_WS_IMAGES . 'thumbs/

 

It's not an all inclusive fix, but after a lot of headache I realized haveing a thumb directory was better in load time as well.

 

I know that's not a great answer, but that is what I would do in your situation.

Nothing unreal exists

Link to comment
Share on other sites

Honestly, I have had the same problem - the problem lies in how the web browser handles this - it is a limitation OSC has without adding support for thumbnails, and resizing and optimizing - I had a site that used line drawings, and they where trashed in the image view.

 

My simple fix was to add a thumbs directory for the modules/new_products.php - but I was not so worried about the product view, that was ok.

 

. tep_image(DIR_WS_IMAGES . 'thumbs/

 

It's not an all inclusive fix, but after a lot of headache I realized haveing a thumb directory was better in load time as well.

 

I know that's not a great answer, but that is what I would do in your situation.

 

 

That works for me as I don't mind make 2 images if it makes it look good. So I updated it on the home under whats new and the main box. However what page do I edit for the details as it still doesn't look good there? And are there any other pages I am forgetting where I should add that line? Thanks.

Link to comment
Share on other sites

that is where it gets complicated - the function is one of the tep_image_xxxxx functions - there are a few in there for different reasons - its under html_output.php under includes/functions/

 

This is where things get a little crazy - you may want to do a search in contributions and see if one of those works better as someone may have a great solution hat fits your needs.

Nothing unreal exists

Link to comment
Share on other sites

Install a decent thumbnail generator:

 

http://www.oscommerce.com/community/contributions,2226

 

This takes a minute to install and creates high-quality, fast-loading iamges of all your thumbs. To see it in action:

 

http://clippersstore.com

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...