public void orientImage(AttachmentDescriptor attDescription) throws Exception {
// Get file
FileConversionContext conversionContext = attDescription.getContext();
String mimeType = attDescription.getContentType();
File outputFile = File.createTempFile("original_", attDescription.getMediaFileName());
conversionContext.downloadFile(attDescription.getAttachmentName(), outputFile);
ImageMagickProcessor imp = ImageMagick.getInfo().getProcessor();
ImageInfo imageInfo = imp.getImageInfo(outputFile);
if( imageInfo.orientation == ImageInfo.Orientation.REQUIRES_CONVERSION ){