Thanks for the note, Charles.
I know - how hard could it be… I am definitely trying to use a library. I have no desire to write more code than I need to.
Unfortunately ImageMagick doesn’t play well in the JVM environment. This is where Python shines since it integrates C/C++ well.
I’ve tried JavaXT which, in theory should be easy. You read the image in and call the rotate function. This function looks at the EXIF information and rotates the image appropriately.
But the colors are not right. In the AWS environment something seems to be wrong with the images that are created as well. When I attempt to save the images (which converts into a jpeg), I get an error.
As it turns out, ImageScalr, which I use to scale images, seems to have a rotate function. Since scaling is working well for me, I’m hoping that their rotation would work too.