I'm working on a portfolio for cinematographers. They also do a lot of photography, and they want their image thumbnails to remain in proportion, so that the image doesn't lose any of it's aesthetic when made smaller.
What I'm looking for is a way to make the images keep their original proportion, but scaling them and fitting them into a container div. (With a set width and height)
I've tried basically everything. Including the traditional way to scale images in proportion:
background:url(../images/banner.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
This works great for scaling, but it still cuts off the image. (wich is what I'm trying to avoid)
I've been searching like a tweeker on meth but can't find ANYTHING that solves this problem. It might be that I'm searching for something that's not solvable in the way I want it.
Anyway.. tl;dr:
I want thumbnails to keep their original image proportion, but be about 3 times as small and fit a container div. (With fixed width and height) Anyone have any ideas on how to accomplish this?
Here's an example of what I'm trying to achieve.