Selectively keeping a few tags

Started by Beholder3, April 30, 2015, 09:13:17 AM

Previous topic - Next topic

Beholder3

Hi,
I want to remove all metada from a picturefile with the exception of a handful selected tags. I used this here a while ago and thought it worked:
-all= -CommonIFD0= -UniqueCameraModel= -tagsfromfile @ -exif:focallength -exif:iso -exif:exposuretime -FNumber -exif:CameraModelName -exif:UniqueCameraModel -exif:LensMake -exif:LensModel -exif:Make

Somehow the camaramodel and the uniquecameramodel are deleted even though I woudl want to keep them.

Any ideas what I need to change to keep the Cameramodel in there (I want flickr to recognize the camera model)?

Phil Harvey

What type of files are these?  If they are JPEG, then you wouldn't need -CommonIFD0= -UniqueCameraModel=.

You are losing the camera model because the tag is called "Model".  I'm not sure about UniqueCameraModel.  Try extracting it with -s -G1 to make sure you are getting the right one.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Beholder3

Thanks due to my use of exiftoolGUI I read the tag name as CameraModelName
Your hint at "Model" was right.
Do you know why the tag is displayed as something else in exiftollGUI?

As for the file format I use JPGs and DNGs. Does that make any difference?


StarGeek

Quote from: Beholder3 on April 30, 2015, 02:20:36 PM
Do you know why the tag is displayed as something else in exiftollGUI?

See FAQ 2.

"When you run exiftool, by default it prints descriptions, not tag names, for the information it extracts."
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Phil Harvey

Quote from: Beholder3 on April 30, 2015, 02:20:36 PM
As for the file format I use JPGs and DNGs. Does that make any difference?

Yes.  You can safely remove all metadata from JPEG's, but you should be more careful with DNG.  I think you should be safe deleting the ExifIFD from DNG images, but I haven't tried it myself, and I definitely don't recommend this for other RAW file types.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).