menpo/menpo — pull request #442 by jabooth (2014-09-11 16:09:54+00:00)
Title: add rescale_to_diagonal, diagonal property to Image

`.diagonal` on `Image` reports the diagonal size of the Image in pixels. `.rescale_to_diagonal(diag)` is useful if you want to coarsely make un-annotated images a certain size without worrying about aspect ratios.