TechieDrill Your World Of Technical Tutorials

Posts Tagged ‘js’

Javascript – Image Resize with Aspect Ratio retained

08.11.2010 · Posted in JavaScript

For decent display of images in your website, Image Resizing alone is not enough, you also need to maintain aspect ratio. Aspect ratio of an Image: Aspect ratio is nothing but the ratio of Height of the image to the Width of the image. The following code can also be useful to display large images within limited boundary ...