I'm trying to write a jQuery function that will resize a set of images according to a specified area, rather than simply a max height or width.
There's a similar question here: resize image by area, but I'd like to get it working in jquery and with multiple images at the same time
Here's what I'm currently working with: http://jsfiddle.net/szSE5/21/ — it's not functioning the way I intended at the moment.
How about this:
In your fiddle: http://jsfiddle.net/szSE5/21/
At first glance, your jsfiddle solution is not working because "this" in your context is a straight-up DOM element, not a jQuery object.