Jump to content
We've recently updated our Privacy Statement, available here ×

"Better" image scaling?


doublep

Recommended Posts

I have an image element that is used to display user-uploaded images. I.e. I have no idea what the image would be like in advance. No matter how I try to scale the element, it looks ugly in some cases.

 

* If I use e.g. 200x200 and default scaling mode (retain shape), there is a lot of unused whitespace above and below landscape fotos, as they are downscaled to something like 200x130. Panorama fotos would be even worse.

 

* If I set dimensions to 200x1 and scaling mode to "real size", it becomes great for landscape. But then portrait fotos take too much space, as they are downscaled to e.g. 200x340 (way too high). If someone uploads a vertical comic strip, it will be even worse.

 

Is there a way to achieve something in between? I.e. so that there is no unused vertical space, yet images are limited in height?

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...