![]() Just compare the data you see with the script to decide whether you need to type “Exif.Image. To find out all of the possible information you can edit for a file named “file_name.JPG”, type the following in a terminal once you are in the same directory as the file: exiv2 -pv file_name.JPG . To install the exiv2 program, you can either type sudo apt-get install exiv2 in a terminal window or use System -> Administration -> Synaptic Package Manager and search for exiv2. There are some advanced tutorials on the website if this script is too basic for you. A couple of the applications can rename the file, but the Exif and IPTC metadata tool exiv2 was the only one I found that really makes it easy to manipulate all of the EXIF data. There are a bunch of programs in the Ubuntu Linux software listings for programs that print out the EXIF, or metadata, about JPG files. Put the file in a directory with the JPGs you want to modify (note that the script currently is set for my camera, which names files with capitals).Edit it with a text editor to make sure you are adding your own information if you are editing the EXIF data.Rename the file to “” (or something that ends in “.pl”).System("exiv2 -M'set Copyright $year YOUR_NAME_HERE.' $pix") System("exiv2 -M'set YOUR_NAME_HERE' $pix") ![]() You can replace say with print if you dont require a new line at the end of the output. Local: echo 1357810480 perl -nE say scalar localtime. I found this very useful in my Bash scripts: UTC: echo 1357810480 perl -nE say scalar gmtime. #Use the program exiv2 to process EXIF metadata and rename the file with timestamp To add to the answer, you can also replace localtime with gmtime in order to get the UTC time. # to add EXIF metadata to JPGS and rename with timestamp. You can comment out the EXIF part to only rename file. Filesīelow is the content of the perl script that renames a file by timestamp and edits EXIF data. There is also a perl script to add EXIF dates to photos, if have a scanned photos or negatives with the incorrect timestamps. Note: I have a different Perl rename files script if you want to rename using text instead of a timestamp. One script simply renames photos to their timestamp. They are single loops that can change the value of the meta data associated with a JPG file (the data about camera, shutter speed, copyright, etc.), or a whole directory of JPG files. Summaryīelow are three small perl scripts that makes use of the exiv2 application to manipulate EXIF data in a JPG file. I still use these scripts to process photos.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |