JavaScript Image Orientation Detection

JavaScript image orientation isn't one of those things that you'll need to use often. It can be useful in some situations though. The way it works is using the unmodified dimensions of the image to determine whether the width is greater than the height or whether the height is greater »