How to remove EXIF data from image, but keep the orientation?

Robin picture Robin · May 25, 2016 · Viewed 8.4k times · Source

When I remove the EXIF data from a folder with images with the Windows properties-tool, the orientation (that was already manually changed), is lost. So when I want to place all this pictures on a website, they aren't displayed correctly. The problem is that the size of the folder has increased dramatically at this moment, to change it manually again. So, is there a way to keep the orientation tag when you remove all the EXIF data, in one step?

Thanks in advance.

Answer

StarGeek picture StarGeek · May 25, 2016

From the command line, you could use Exiftool with this command: exiftool -all:all= -tagsfromfile @ -exif:Orientation

Another thing you could do is rotate the image before uploading. For example, Irfanview has a plugin that will do lossless jpeg rotation for you.

Finally, you can check to see if the website can rotate the image for you. Sites like Facebook and Imgur have options to rotate the image.