I started a thread a while ago about resize an image to a container without the image losing its aspect ratio - link to the thread"
I tried to achieve this using CSS which I did manage to do. However, CSS didn't seem to do it very elegantly and displays differently in different browsers.
So what I want to do is resize an image to its parent div size which is 174x217px. The image should remain good quality, resize quickly and not have any of the image overflowing or being cut off. I've seen many sites resizing the image by using the URL. The default example on this page is something i'm looking for here.
The url to the image would be something like this mywebsite.com/images/testimage.png?width=174&height=217