getAspectRatio

fun getAspectRatio(scaleFactor: Double = definedExternally): Double(source)

The image's aspect ratio (width divided by height).

If scaleFactor is passed, this will return the aspect ratio corresponding to the image representation most closely matching the passed value.