![]() Like the writeMetadataToTag() method, this one also takes either a string or an array of strings as a parameter. This leaves the empty tag in the image file so it can be written to again if necessary. Exiftool provides the clearMetadataFromTag() method to clear tag values. This is slighlty different that stripping the tag entirely from the image. This is essentially the same as writing an empty string to the tag. Install/Setup : rename exiftool (-k).exe into exiftool.exe and add exiftool.exe location in the windows env PATH variable (to have it available from the windows prompt from any directory and be able use exiftool to call it instead of 'exiftool (-k).exe' ) Or use the full path to the exe : 'C:\Toolls\exiftool\exiftool. Tags can be cleared of their metadata value. The simplest use of Exiftool looks like this: ![]() getMetadata ( '/path/to/a/different/image.jpg', 'ADifferentSavedShortcut', 'EXIF:LensInfo', 'EXIF:FocalLength', 'File:ImageWidth', 'File:ImageHeight' ) getMetadata ( '', '', 'EXIF:LensInfo', 'EXIF:FocalLength', 'File:ImageWidth', 'File:ImageHeight' ) // All three parameters can be used at once if desired. For example, extracting LensInfo, // FocalLength, ImageWidth and ImageHeight values (if present). getMetadata ( '', 'ADifferentSavedShortcut', '' ) // Adding Tags to command to be extracted, in additon to those // specified in the shortcut. getMetadata ( '/path/to/a/different/image.jpg', '', '' ) // Using all the default options, but calling a different shortcut // previously saved to the nfig file. getMetadata ( ) // Changing the image path, if you want, for some reason. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |