

Let's say we want to add something to an image, exiftool -Comment="This is gHacks" image.jpg. Type exiftool followed by the attribute that you wish to change using the following syntax. Editing tagsĮditing exif data is pretty easy. The resulting file will still have the regular properties of a file (size, name, date created, etc). The original file is renamed as image.jpg_original.Īlternatively, use the following command. Instead, it creates a copy of it with the modified metadata, which can be useful for sharing online. The program does not modify the original file. This tells ExifTool to delete all exif (personally identifiable) tags from the image's metadata. They contain a ton of metadata from just one photo I took on vacation last year.

Repeat the steps, add a space after "exiftool", and then drop the image onto the window before hitting Enter. This method can also be used for adding an image's path quickly. When you want to use it, open a command window, drag and drop the exiftool.exe to the window to run it from its location. Place it inside a folder that is a system path so that you may run it easier from the command prompt this mode allows you to use all features in the application, so this is what we will be using here. This will open a command window that displays the metadata of the file.Īn alternative way to use it is to rename it from exiftool(-k).exe to exiftool.exe. Instead, drag and drop files or folders on it using Explorer. Download the archive it contains an executable. It is a command-line application (technically a script). All the frameworks i've seen create new PDFs, which means all the tagging and alt text we put in would be lost so i surely don't want to go the route of Zend or anything that won't JUST edit the Meta Data.You can edit or delete metadata with the help of programs like ExifTool by Phil Harvey. I've attempted to search for an Adobe API or library i could plug in to do these minor edits. Has anyone tried to tackle this before web side? I was hoping to build something that would solve some troubles to cut down on having to open everyone single one of these in Adobe and resave them. I've attempt to use exiftool via shell_exec(), but this only seems to work on PDF version 1.4, everything else will set inside the PDF but still fail our scans because of flags like /Type/Catalog/ViewerPreferences> which seem to be set randomly inside the document on 1.6. I've had some luck on PDF version 1.4 with doing string replacements on the whole document (Via file_get_contents) and rewriting the file so i wouldn't lose whats in it, but in 1.5 and 1.6 the PDF standard, insides are even space and tab sensitive it seems. I have several PDFs I need to add the Primary Language (Which for us is always english, so (en-us) as the document's catalog dictionary entry) and Title fields to so I can have these PDFs pass ADA checks.
