Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fixed width, variable height on pictures


Bobcat698

Recommended Posts

Posted

Some of my pictures distort because there are "set values" for the width and height.

 

It seems that this site

Site has fixed widths, but variable height for the products.

 

How do I accomplish this?

 

Thanks!

Garrett

Posted

Search for the 'Image Resize Fix' contribution which maintains aspect ratio. It works on the catalog side, but not the admin, so you'll have to preview your images through your storefront.

 

Cheers.

Posted
Search for the 'Image Resize Fix' contribution which maintains aspect ratio. It works on the catalog side, but not the admin, so you'll have to preview your images through your storefront.

 

Cheers.

 

Do you have a link? I am not able to find the exact fix "Image Resize Fix"....

 

I'd greatly appreciate it.

 

Thanks!

Garrett

Posted

Not sure if this will help, but you can define the image sizes within <img src=" " >. If you set a width=" " but not a height, the browser will automatically use the height in aspect ratio to the width you set. If you don't set either, it will go with default, but you can define both to get a skewed image.

Posted
Do you have a link? I am not able to find the exact fix "Image Resize Fix"....

 

I'd greatly appreciate it.

 

Thanks!

Garrett

 

Hey Garrett,

are you talking about that your images are blurry or to big?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted
Hey Garrett,

are you talking about that your images are blurry or to big?

 

No, I mean the aspect ratio is off, they look squished because the height value is set too low, BUT, I can't change the height setting so that it works for ALL images.

Posted
No, I mean the aspect ratio is off, they look squished because the height value is set too low, BUT, I can't change the height setting so that it works for ALL images.

 

ok lets experiment here. if it is sub categories.

 

if you go to your admin click on Confinguration>Images

 

what is your settings as follows:

 

Sub Categories Images Hieght: ???

 

Sub Categories Images Width: ???

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted
ok lets experiment here. if it is sub categories.

 

if you go to your admin click on Confinguration>Images

 

what is your settings as follows:

 

Sub Categories Images Hieght: ???

 

Sub Categories Images Width: ???

 

Sub Categories Images Hieght: 150

 

Sub Categories Images Width: 115

 

That setting doesn't work for all of my images though :(

Posted
Sub Categories Images Hieght: 150

 

Sub Categories Images Width: 115

 

That setting doesn't work for all of my images though :(

 

Any other ideas?

Thanks

Posted
Any other ideas?

Thanks

 

Look here:

[Dead Link]

 

See how some are squished and look distorted?

 

Any way to fix that?

 

Thanks!

 

-------------------

Link Removed as per user request.

Andrew

Posted
Look here:

[Dead Link]

See how some are squished and look distorted?

 

Any way to fix that?

 

Thanks!

 

Also, its distorted here:

[Dead Link]

 

-------------------

Link Removed as per user request.

Andrew

Posted
Also, its distorted here:

[Dead Link]

you have to define only one, the widht or the height in the admin

 

so for instants:

height: 100 px

width:

 

That will work,

 

Denice

 

-------------------

Link Removed as per user (Bobcat698) request.

Andrew

Archived

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

×
×
  • Create New...