PHPOffice/PHPWord — pull request #194 by japonicus (2014-04-08 17:47:23+00:00)
Title: Keep image aspect ratio if only 1 dimension styled

If only one of image width or height is specified, then scale missing dimension to maintain the aspect ratio.

I suspect that for most use-cases users would prefer to maintain the aspect ratio of images rather than distort them if a width or height style is specified but not both. This small patch sets the missing dimension to maintain the image's aspect ratio.