calcImageDimensions

Calculate out of a width, height or both new dimensions of an image while keeping the aspect ratio.


Keywords
image, resize, dimensions, ratio, calculate
License
MIT
Install
bower install calcImageDimensions

Documentation

calcImageDimensions()

Small method to calculate new dimensions for an Image, respecting the actual aspect ratio.

Installing

bower install calcImageDimensions