I'd like to scale and crop an image to a set width and height while maintaining the aspect ratio in browser since the image is being pulled from elsewhere (a facebook image object which has fixed sizes).
Is there a 'standard' way to do this in browsers using CSS and Javascript? I can change the image height/width and use top/left to get something working.
Is resizing the image object the way to enact the change, and is there a standard way to crop and resize the image (how to calculate the cropping)?
I was hoping jQuery would have an answer.