I was having issues converting images for one of my clients the other day. I have been using ImageMagick for some time and it has worked great for me. But, for some reason a couple of images were rotating to a horizontal view when the original photo I took was vertical.

After looking at some cool hat designs I got some inspiration and found a way to keep the orientation of my original photos. It was quite simple this time. You need to add -auto-orient option to the convert command, for example:

convert thisimage.jpg -auto-orient goodimage.jpg

I found that jpg images have a header flag which specifies how the image was taken by your camera in the EXIF data. Give it a try and contact me if you have any questions.

Some of my coffee mugs and T-Shirt designs

Leave a comment

Your email address will not be published. Required fields are marked *