WMA link
ImageAspectRatio
img = Import["ExampleData/hedy.tif"];
ImageAspectRatio[img]
ImageAspectRatio[Image[{{0, 1}, {1, 0}, {1, 1}}]]