Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 440
Robin Avatar asked May 25 '16 09:05

Robin


1 Answers

From the command line, you could use Exiftool with this command:

exiftool -all:all= -tagsFromFile @ -exif:Orientation example.jpg

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.

like image 59
StarGeek Avatar answered Sep 28 '22 07:09

StarGeek