7

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.

Robin
  • 93
  • 1
  • 1
  • 5

3 Answers3

8

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.

Flimm
  • 136,138
  • 45
  • 251
  • 267
StarGeek
  • 4,948
  • 2
  • 19
  • 30
  • This is great! Thank you. I prefer this command, as it leaves the ICC profile data intact: `exiftool -geotag= -EXIF= -tagsFromFile @ -exif:Orientation example.jpg` – Flimm Aug 26 '21 at 16:34
  • 1
    Is there a way to do it without preserving the exif data? – default123 Apr 05 '22 at 13:42
5

I use Imagemagick for this. Quick batch script (linux): for f in *.JPG *.jpg; do convert $f -auto-orient $f; done withstanding some pain, you can do similar things with windows Batch or (slightly less painful) Powershell.

Notice that this only takes care of the orientation, you might still want to remove the rest of the EXIF.

Echsecutor
  • 775
  • 8
  • 11
  • 1
    To remove the rest of the meta data including the EXIF data just add -strip after -auto-orient. – fmw42 Dec 01 '17 at 22:35
  • 2
    One thing to take note of is that this is a destructive re-compress. It will introduce graphic artifacts the more often it is done. There are programs that can do a lossless rotate which is a better solution in the long run if you don't want to just edit the metadata. – StarGeek Dec 03 '17 at 07:34
0

There is an option in XnView MP to reset all exif rotation information. It can be found in the menu Tools > Jpeg Lossless transformation > Reset EXIF orientation field

Sandra
  • 765
  • 3
  • 10
  • 20