Forums / Setting Up Categories, Products, Attributes / How to Maintain Aspect Ratio of Landscape & Portrait Images?

How to Maintain Aspect Ratio of Landscape & Portrait Images?

Locked

Views: 2,936

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Sep 2007, 6:31 PM
#1
bsteinagel avatar

bsteinagel

Zen Follower

Join Date:
Sep 2007
Location:
Neenah, WI
Posts:
112
Plugin Contributions:
0

How to Maintain Aspect Ratio of Landscape & Portrait Images?

I'm creating a website to showcase my photography. I'm going to have some images that are landscape mode (wider than they are tall) and some that are portrait mode (taller than they are wide). I noticed within admin that zen cart only allows you to type in specific pixel heights and widths. Obviously, the portrait images are going to be a totally different dimensions than the landscape images. How can I tell admin to keep the aspect ratio of the pictures rather than display them according to the pixel height and width within configuration>images?

I hope this makes sense because it's kind of hard to explain.

Thanks,
Brad

25 Sep 2007, 6:44 PM
#2
vinyl_signs avatar

vinyl_signs

Zen Follower

Join Date:
Jun 2007
Location:
Shropshire UK
Posts:
125
Plugin Contributions:
0

Re: How to Maintain Aspect Ratio of Landscape & Portrait Images?

bsteinagel:

I'm creating a website to showcase my photography. I'm going to have some images that are landscape mode (wider than they are tall) and some that are portrait mode (taller than they are wide). I noticed within admin that zen cart only allows you to type in specific pixel heights and widths. Obviously, the portrait images are going to be a totally different dimensions than the landscape images. How can I tell admin to keep the aspect ratio of the pictures rather than display them according to the pixel height and width within configuration>images?

I hope this makes sense because it's kind of hard to explain.

Thanks,
Brad
I think if you only specify "height" or "width" - that will achieve what you want - you need to decide whether you want to use "height" or "width" - specify that - and leave the other one blank - the program will keep the aspect ratio correct.
Give it a try...:blink:

25 Sep 2007, 7:08 PM
#3
bsteinagel avatar

bsteinagel

Zen Follower

Join Date:
Sep 2007
Location:
Neenah, WI
Posts:
112
Plugin Contributions:
0

Re: How to Maintain Aspect Ratio of Landscape & Portrait Images?

Thanks Vinyl! That works great.

Brad