$ 0 0 You can use the AutoOrient method of MagickImage for this. This method will look at the EXIF information of your image and rotate the image when this is necessary.