![edit exif data mac command line edit exif data mac command line](https://petapixel.com/assets/uploads/2012/05/exifcommand.jpg)
You can use it to read & write exif meta data that's attached to a single image or a whole directories worth of files using its recursive switch ( -r).
![edit exif data mac command line edit exif data mac command line](https://www.jetbrains.com/phpstorm/whatsnew/img/2020.2/command_line_tools.png)
For example,Įxifpilot.The tool you're looking for is called exiftool. Specify the path to the source directory to be read. You can start Exif Pilot with different folders. For example,Įxifpilot.exe c:\Pictures.jpg ImportCSV c:\Pictures\img.txt Specify the path to the source CSV file to be imported. You can import EXIF and IPTC info in images from CSV files using the command “ImportCSV”. For example,Įxifpilot.exe c:\Pictures.jpg ImportExcel c:\Pictures\img.xls Specify the path to the source MS Excel file to be imported. You can import EXIF and IPTC info in images from MS Excel files using the command “ImportExcel”. For example,Įxifpilot.exe c:\Pictures.jpg ImportXML c:\Pictures\img.Xml Specify the path to the source XML file to be imported. You can import EXIF and IPTC info in images from XML files using the command “ImportXML”. The CSV files will have the same names as the source images, but their extensions will be. The resulting CSV files will be located in the source images directory. You can export EXIF and IPTC info to CSV files using the command “ExportCSV”. xls.Įxifpilot.exe c:\Pictures.jpg ExportExcel The MS Excel files will have the same names as the source images, but their extensions will be.
![edit exif data mac command line edit exif data mac command line](https://www.fireebok.com/images/resource/osx/changephotocreateddate.png)
The resulting MS Excel files will be located in the source images directory. You can export EXIF and IPTC info to MS Excel files using the command “ExportExcel”. xml.Įxecute the following from the command line: The XML files will have the same names as the source images, but their extensions will be. The resulting XML files will be located in the source images directory. You can export EXIF and IPTC info to XML files using the command “ExportXML”. Important: Each command in the text file must be written on a new line!īoth commands in the text file will be executed. For example, in a file named example.txt, you might include these commands:Ĭ:\Pictures\image.jpg Exif/Image/Compression 2Ĭ:\Pictures\image.jpg Exif/Image/Model Unknown You may write several commands to one text file. For example,Įxifpilot.exe c:\Pictures.jpg Exif/Image/Copyright “My Copyright”, Exif/Photo/ExposureTime 1/8, Exif/Image/Compression 5 Note: You may combine edits in a single one command. Then, execute the following from the command line:Įxifpilot.exe c:\Pictures.jpg Exif/Photo/LightSource 10 For example, if you want to change the LightSource field on Cloudy weather, first find (in the Metadata.txt file or here) the number that corresponds to the Cloudy weather value, which is 10. Ordinal type tags can contain only predetermined values. If you want to set a new value of 4.8, you need to convert it from decimal format. Note: Fractional type means that the parameter value must be in a/b format. For example, if you want to change the FNumber field on number 4.8, execute the following from the command line:Įxifpilot.exe c:\Pictures.jpg Exif/Photo/FNumber 48/10 For example, if you want to change the BitsPerSimple field on number 8, execute the following from the command line:Įxifpilot.exe c:\Pictures.jpg Exif/Image/BitsPerSample 8įractional type tags can contain only fractional numbers in the form a/b.
![edit exif data mac command line edit exif data mac command line](https://hacker10.com/wp-content/uploads/2011/05/ExifPilot-Pro-Exif-data-editing.jpg)
Numeral type tags can contain only unsigned integers. For example, if you want to write in the Copyright field the string “Example string”, execute the following from the command line:Įxifpilot.exe c:\Pictures.jpg Exif/Image/Copyright “Example string” String type tags can contain strings composed of any symbols.
#EDIT EXIF DATA MAC COMMAND LINE HOW TO#
How to create and edit EXIF and IPTC data of various types is explained below. The list of tags and their values, which you can edit, is found in the Metadata.txt file or here. If you want change only one file, you must provide the path to the specific graphic file. The command line format for batch editing:Įxifpilot.exe PathToFolderWithImages TagName NewValueOfTag There are also tags which have the ordinal type which may take only predetermined values.Īfter you write the value of a specific parameter, then execute the appropriate command for the corresponding tag from the command line (including the path to the folder with images or the path to the specific file), the new value will be written in the image. For example, if a tag is the string type, then it contains a string, but if a tag is the numeral data type, then it may contain only a number. Using the command line, you can work with batch files or single files.Įach tag has a type. You can create and edit EXIF and IPTC data using the command line.