Link to home
Start Free TrialLog in
Avatar of akohan
akohan

asked on

Showing pictures in PHP



Hello group,

I'm uploading images on site (developed in zen cart using PHP) and the problem is that some pictures are vertical and some are horizontal ... and the way they look is not fine. How can I work around this issue?

what is the best practice to show them properly?

Thank you,
ak
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

I think I would create a transparent canvas and resize them proportionally to fit either the width or height of the canvas.  If you find that does not give good results, and you need to choose, then resize to fit the width and let the height (y-axis) fall where it may.
Create thumbnails of images and display original image in pop up when user clicks on thumbnail.
SOLUTION
Avatar of idealws
idealws
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial