gm will report the orientation as the string "Undefined" if it is unknown. This is another situation in which we should not pass the image needlessly through a convert pipeline