Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Image Size


nathan49

Recommended Posts

Posted

I have been trying to determine the best size for a product image in the default setup. I have not been able to find any information on this. My square pictures display fine at 150px X 150 px but my long picture become squashed. The long one are about 150px X 250px. Any information would be appreciated.

 

Regards,

Nathan49

Posted

If your problem is the fact that the different sized images become skewed I'm pretty sure you can define just one of the attributes in the admin->configuration and it will scale the other...

 

For instance... say you wanted your pictures to be 150px wide and you didn't care about the height... I think you can set just the width and everything else will fall into place. You're going to have different heights, but there isn't much you can do about that unless you go through everything and change the sizes to one uniform size.

 

I'm not positive if this will work, but I think I've done it before in osC... it's worth a try, at least... wouldn't take that long to change it back.

 

Hope this helps.

Ian Osos

Web Developer

Posted
I have been trying to determine the best size for a product image in the default setup. I have not been able to find any information on this. My square pictures display fine at 150px X 150 px but my long picture become squashed. The long one are about 150px X 250px. Any information would be appreciated.

 

Regards,

Nathan49

 

 

Hi, did you ever figure this out. I have looked at the link and cannot find any code which matches. I have the same problem, if you fixed it can you tell me how please

Posted

You can set the width only by

 

ADMIN->CONFIGURATION->IMAGES

 

Look for the options and set as follows:

 

Product Information Image Width: 150

Product Information Image Height: 0

 

This means oscommerce only checks to see if the image width is set correctly and it should ignore the height.

Posted

Think you might need to set the height to blank rather than 0.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Thanks to everyone who supplied insight. I changed the settings as advised in Configuration > Images. I set the width to 150 and left the height blank. That seemed to do the trick. Now the lengthwise images are displaying properly. And so are the square images.

 

Thanks again - Regards,

Nathan49

Posted

i tried setting the width to 190 and left the height blank but my images are now showing at full size, which is about the size of the screen. i have no clue what is going on.

Posted
i tried setting the width to 190 and left the height blank but my images are now showing at full size, which is about the size of the screen. i have no clue what is going on.

 

Hi,

 

Prior to setting the width I had already created thumbnails with width of 150px. If you are using Linux you can use Imagemagick- convert or mogrify all pictures in a directory to the size you want with one command.

 

Regards,

Nathan49

Archived

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

×
×
  • Create New...