I have images that will be quite big in dimension and I want to shrink them down with jQuery while keeping the proportions constrained, i.e. the same aspect ratio.
C
If the image is proportionate then this code will fill the wrapper with image. If image is not in proportion then extra width/height will get cropped.