| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 2 |
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> |
| 3 |
<html> |
| 4 |
<head> |
| 5 |
<title>Installing ExifTool</title> |
| 6 |
<link rel=stylesheet type='text/css' href='style.css' title='Style'> |
| 7 |
<style type="text/css"> |
| 8 |
<!-- |
| 9 |
li { margin-top: .5em } |
| 10 |
.attn { padding: 0.5em; border: 1px solid gray; background: #fee } |
| 11 |
div.rt { float: right; clear: both } |
| 12 |
--> |
| 13 |
</style></head> |
| 14 |
<body> |
| 15 |
<h1 class='up'>Installing ExifTool</h1> |
| 16 |
|
| 17 |
<blockquote class=attn><b class=red>Note:</b> ExifTool <b>does <u>not</u> need |
| 18 |
to be installed</b> to run. Just download and extract either the full Perl |
| 19 |
distribution on Mac/Linux, or the Windows EXE version on Windows, and run it |
| 20 |
directly. <i class=lt>[But note that if you move the Perl "exiftool" |
| 21 |
application you must also move its "lib" directory to the same location, and |
| 22 |
if you move the Windows "exiftool(-k).exe" or "exiftool.exe" you must also move the |
| 23 |
"exiftool_files" folder.]</i><br><br>However, the benefits of installation are: |
| 24 |
<ul><li>Makes ExifTool available to all users.</li> |
| 25 |
<li>Saves typing on the command line (by placing "exiftool" in your PATH).</li> |
| 26 |
<li>Installs the ExifTool documentation and API libraries (full Perl version only).</li> |
| 27 |
</ul></blockquote> |
| 28 |
|
| 29 |
<p>See the appropriate section below with instructions for installing or |
| 30 |
uninstalling ExifTool on your specific platform:</p> |
| 31 |
|
| 32 |
<ul> |
| 33 |
<li><a href="#Windows">Windows</a></li> |
| 34 |
<li><a href="#MacOS">MacOS</a></li> |
| 35 |
<li><a href="#Unix">Unix Platforms</a></li> |
| 36 |
</ul> |
| 37 |
|
| 38 |
<p>Also see <a href="index.html#running">these instructions</a> for help running |
| 39 |
ExifTool.</p> |
| 40 |
|
| 41 |
<hr> |
| 42 |
<h2><a name="Windows">Windows</a></h2> |
| 43 |
|
| 44 |
<p>In Windows, there is a choice of two different versions of ExifTool to |
| 45 |
install. The Perl distribution requires Perl to be installed on your system. |
| 46 |
(A good, free Perl interpreter can be downloaded from |
| 47 |
<a href="https://www.activestate.com/products/perl/">activeperl.com</a> or |
| 48 |
<a href="https://strawberryperl.com/">strawberryperl.com</a>.)</p> |
| 49 |
<p>If you don't already have Perl, it is easier to install the ExifTool |
| 50 |
executable version, but note that this version doesn't include the HTML |
| 51 |
documentation or some other files of the full distribution.</p> |
| 52 |
|
| 53 |
<h3>Windows Executable</h3> |
| 54 |
<ol> |
| 55 |
<li><b>Download</b> the 32-bit or 64-bit <b>Windows Executable</b> from the <a href="index.html">ExifTool home page</a>. |
| 56 |
<br><span class=lt>(The file you download should be named "<code>exiftool-13.55_32.zip</code>" |
| 57 |
or "<code>exiftool-13.55_64.zip</code>".)</span></li> |
| 58 |
<li><b>Extract the "<code>exiftool-13.55_xx</code>" folder</b> from |
| 59 |
the "<code>.zip</code>" file, and place it <b>on your Desktop</b>. |
| 60 |
<br><span class=lt>(Double-click on "<code>exiftool-13.55_xx.zip</code>" to open |
| 61 |
the archive, then drag "<code>exiftool-13.55_xx</code>" folder to your Desktop.)</span></li> |
| 62 |
<li>Open the "<code>exiftool-13.55_xx</code>" folder from your Desktop.</li> |
| 63 |
</ol> |
| 64 |
<p>You can now double-click on "<code>exiftool(-k).exe</code>" in this folder to read |
| 65 |
the application documentation, or drag-and-drop files and folders to run exiftool on |
| 66 |
selected files. To install exiftool for <b>use from the command line</b>, |
| 67 |
continue with the following steps:</p> |
| 68 |
<ol start=4> |
| 69 |
<li><b>Rename</b> "<code>exiftool(-k).exe</code>" to <b>"<code>exiftool.exe</code>"</b>. |
| 70 |
<br><span class=lt>(or "<code>exiftool(-k)</code>" to "<code>exiftool</code>" if file name |
| 71 |
extensions are hidden on your system)</span></li> |
| 72 |
<li><b>Move "<code>exiftool.exe</code>" and the "<code>exiftool_files</code>" folder</b> |
| 73 |
to any directory in your PATH (or any other directory of your choosing).</li> |
| 74 |
</ol> |
| 75 |
<p>You can now run exiftool by typing "<code>exiftool</code>" at the command |
| 76 |
prompt (or "<code>c:\path\to\exiftool</code>" if the directory isn't in your |
| 77 |
PATH). <br><span class=lt>(To get to the command prompt, select "Run..." from |
| 78 |
the Windows "Start" menu, then type "<code>cmd</code>" and press Return.)</span></p> |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
<p><a name="uninstall_Windows_exe"><b>Uninstalling:</b></a></p> |
| 91 |
<ol type='i'> |
| 92 |
<li>Drag "<code>exiftool(-k).exe</code>" (or "<code>exiftool.exe</code>" if you renamed |
| 93 |
it) and the "<code>exiftool_files</code>" folder into the Recycle bin.</li> |
| 94 |
</ol> |
| 95 |
<h3>Full Perl Distribution</h3> |
| 96 |
<p>You must have Perl installed to use this version. (A free version of Perl |
| 97 |
can be downloaded from |
| 98 |
<a href="http://www.activestate.com/activeperl/">activeperl.com</a> or |
| 99 |
<a href="https://strawberryperl.com/">strawberryperl.com</a>.)</p> |
| 100 |
<ol> |
| 101 |
<li><b>Download</b> the <b>Image-ExifTool distribution</b> from the <a href="index.html">ExifTool home page</a> |
| 102 |
<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-13.55.tar.gz</code>".)</span></li> |
| 103 |
<li><b>Extract the ExifTool files</b> from the archive. |
| 104 |
<br><span class=lt>(The archive is a gzipped tar file, and can be opened with |
| 105 |
various Windows utilities, including WinZip.)</span></li> |
| 106 |
<li><b>Rename</b> "<code>exiftool</code>" to <b>"<code>exiftool.pl</code>"</b> |
| 107 |
in the exiftool distribution.</li> |
| 108 |
<li><b>Move "<code>exiftool.pl</code>"</b> and the <b>"<code>lib</code>"</b> |
| 109 |
directory from the exiftool distribution to any directory in your PATH.</li> |
| 110 |
</ol> |
| 111 |
<p>Now, if you have made the proper Windows associations for the |
| 112 |
"<code>.pl</code>" extension (an option in the ActivePerl installation), you |
| 113 |
can run exiftool by typing "<code>exiftool.pl</code>" at the |
| 114 |
"<code>cmd.exe</code>" prompt. Otherwise you should type |
| 115 |
"<code>perl c:\path\to\exiftool.pl</code>".</p> |
| 116 |
<p><a name="uninstall_Windows_perl"><b>Uninstalling:</b></a></p> |
| 117 |
<ol type='i'> |
| 118 |
<li>Drag "<code>exiftool.pl</code>" and the |
| 119 |
"<code>lib</code>" into the Recycle bin. You should first confirm |
| 120 |
that "<code>lib</code>" contains only the "<code>File</code>" |
| 121 |
and "<code>Image</code>" sub-directories. Do not delete it if it |
| 122 |
contains anything else.</li> |
| 123 |
</ol> |
| 124 |
|
| 125 |
<hr> |
| 126 |
<h2><a name="MacOS"></a><a name="OSX">MacOS</a></h2> |
| 127 |
|
| 128 |
<p>If you have installed the BSDSDK package from the Xcode Developer Tools |
| 129 |
(<i>ie. if you have the</i> "<code>make</code>" <i>utility</i>), you should |
| 130 |
follow the install procedure for <a href="#Unix">Unix platforms</a> in the next |
| 131 |
section instead of the steps below. The Unix install has the advantage of making |
| 132 |
the ExifTool library available for your Perl scripts, as well as installing the |
| 133 |
man pages and POD documentation.</p> |
| 134 |
<p>Otherwise, you have a choice of two packages to install: The MacOS package, or |
| 135 |
the full Perl distribution. Both of the procedures below install the ExifTool |
| 136 |
files in the same location. Installing from the MacOS package is easier, but the |
| 137 |
full distribution includes HTML documentation and some other files not included |
| 138 |
in the MacOS package. Both versions run natively on PPC and Intel Macs.</p> |
| 139 |
|
| 140 |
<h3>MacOS Package</h3> |
| 141 |
<ol> |
| 142 |
<li><b>Download</b> the <b>ExifTool MacOS Package</b> from the <a href="index.html">ExifTool home page</a>. |
| 143 |
<br><span class=lt>(The file you download should be named "<code>ExifTool-13.55.pkg</code>".)</span></li> |
| 144 |
<li><b>Install</b> as a normal <b>MacOS package</b>. |
| 145 |
<br><span class=lt>(Double-click on the install package, and follow the instructions. |
| 146 |
See the Notes below if you are stopped with an "unidentified developer" |
| 147 |
or "could not verify" message.) |
| 148 |
</span></li> |
| 149 |
</ol> |
| 150 |
<p>You can now run exiftool by typing "<code>exiftool</code>" in a Terminal window.</p> |
| 151 |
<p>If this doesn't work, then it is likely you have an older version of MacOS for which |
| 152 |
/usr/local/bin isn't in the default PATH. To fix this, add the following line to your |
| 153 |
~/.profile settings using a text editor:</p> |
| 154 |
<blockquote><code>export PATH=$PATH:/usr/local/bin</code></blockquote> |
| 155 |
|
| 156 |
<p class=lt><b>Notes:</b></p> |
| 157 |
<p><i class=lt>Apple blocks apps from unknown vendors and extorts a developer fee |
| 158 |
which seems incongruous with the concept of open source software so I refuse to pay |
| 159 |
it, hence the following inconvenience... - PH</i></p> |
| 160 |
<ul><li>In MacOS 10.8 to MacOS 14, you may see this message when you try to open the install package: |
| 161 |
<blockquote class=red>"ExifTool-13.55.pkg" can't be opened because it is from an |
| 162 |
unidentified developer.</blockquote> The solution is to control-click on the pkg then |
| 163 |
select "Open" from the pop-up menu instead of just double-clicking. An alternative |
| 164 |
is to lower the security settings by changing "Allow applications downloaded from" |
| 165 |
to "Anywhere" in the General "Security & Privacy" System Preferences. |
| 166 |
(<a href="https://support.apple.com/en-us/HT202491">Read here</a> or |
| 167 |
<a href="http://news.softpedia.com/news/Fix-OS-X-Error-Application-Can-t-Be-Opened-Because-it-Is-from-an-Unidentified-Developer-407375.shtml">here</a> |
| 168 |
for a full description.)</li> |
| 169 |
<li>In MacOS 15 or later, you may see this message when you try to open the install package: |
| 170 |
<blockquote class=red>Apple could not verify "ExifTool-13.55.pkg" is free of malware |
| 171 |
that may harm your Mac or compromise your privacy.</blockquote> The solution is to |
| 172 |
open the "Privacy & Security" System Settings and find the "Open Anyway" button |
| 173 |
in the Security section.</li> |
| 174 |
<li>Another possibility if you already have another version of ExifTool installed |
| 175 |
is to remove the quarantine flag by running this command in a Terminal window, |
| 176 |
allowing the installer to be launched: |
| 177 |
<blockquote><pre class=code>exiftool -XAttrQuarantine= ExifTool-13.55.pkg</pre></blockquote> |
| 178 |
or if you don't already have ExifTool installed, you can do this: |
| 179 |
<blockquote><pre class=code>xattr -d com.apple.quarantine ExifTool-13.55.pkg</pre></blockquote> |
| 180 |
Note that you should "cd" into the directory containing the package file |
| 181 |
before running either of the above commands, or specify the full path name of |
| 182 |
the package file. |
| 183 |
</li></ul> |
| 184 |
|
| 185 |
<h3>Full Perl Distribution</h3> |
| 186 |
<ol> |
| 187 |
<li><b>Download</b> the <b>Image-ExifTool distribution</b> from the <a href="index.html">ExifTool home page</a> |
| 188 |
to your Desktop. |
| 189 |
<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-13.55.tar.gz</code>".)</span></li> |
| 190 |
<li><b>Launch</b> the <b>Terminal</b> application from the Utilities folder in your Applications folder.</li> |
| 191 |
<li>In the Terminal window, <b>type the following</b>: |
| 192 |
<pre class='code'> cd ~/Desktop |
| 193 |
tar -xzf Image-ExifTool-13.55.tar.gz |
| 194 |
cd Image-ExifTool-13.55 |
| 195 |
sudo cp -r exiftool lib /usr/local/bin |
| 196 |
</pre> |
| 197 |
<span class=lt>(Note: The last step above will require you to enter your |
| 198 |
password.)</span></li> |
| 199 |
</ol> |
| 200 |
<p>You can now run exiftool by typing "<code>exiftool</code>" in a Terminal window.</p> |
| 201 |
|
| 202 |
<p class=lt><b>Note:</b></p> |
| 203 |
<ul><li>Both MacOS installation techniques outlined above place |
| 204 |
exiftool and its lib directory in /usr/local/bin, while the standard Unix |
| 205 |
"<code>make install</code>" described below puts "<code>exiftool</code>" in |
| 206 |
/usr/local/bin and the individual libraries in /Library/Perl/#.#.#, where "#.#.#" is |
| 207 |
your Perl version. If both sets of libraries exist, /usr/local/bin/lib takes |
| 208 |
precedence for exiftool, but /Library/Perl/#.#.# is the default for any other |
| 209 |
Perl scripts.</li></ul> |
| 210 |
|
| 211 |
<h3><a name="uninstall_MacOS">Uninstalling</a></h3> |
| 212 |
<ol type='i'> |
| 213 |
<li>Launch the "Terminal" application from the Applications Utilities folder.</li> |
| 214 |
<li>Type "<code>open /usr/local/bin</code>" (without the quotes) in the Terminal |
| 215 |
window, then press RETURN. (This opens a folder that you normally can't access |
| 216 |
from MacOS.)</li> |
| 217 |
<li>Drag "<code>exiftool</code>" and "<code>lib</code>" into the trash from the |
| 218 |
"<code>bin</code>" folder you opened. You should first confirm that |
| 219 |
"<code>lib</code>" contains only two sub-folders: "<code>File</code>" and |
| 220 |
"<code>Image</code>". If it contains anything else, don't trash it because you |
| 221 |
have the wrong "<code>lib</code>" folder.</li> |
| 222 |
</ol> |
| 223 |
|
| 224 |
<hr> |
| 225 |
<h2><a name="Unix">Unix Platforms</a></h2> |
| 226 |
|
| 227 |
<ol> |
| 228 |
<li><b>Download</b> the <b>Image-ExifTool distribution</b> from the <a href="index.html">ExifTool home page</a> |
| 229 |
<br><span class=lt>(The file you download should be named "<code>Image-ExifTool-13.55.tar.gz</code>".)</span></li> |
| 230 |
<li><b>Unpack the distribution</b> and <b>make it your current directory</b> by typing: |
| 231 |
<pre class='code'> cd <i><your download directory></i> |
| 232 |
gzip -dc Image-ExifTool-13.55.tar.gz | tar -xf - |
| 233 |
cd Image-ExifTool-13.55 |
| 234 |
</pre> |
| 235 |
<span class=lt>(At this point you may run exiftool by typing |
| 236 |
"<code>./exiftool <i><image file name></i></code>".)</span></li> |
| 237 |
<li><b>Test and install ExifTool</b> by typing: |
| 238 |
<pre class='code'> |
| 239 |
perl Makefile.PL |
| 240 |
make test |
| 241 |
sudo make install |
| 242 |
</pre> |
| 243 |
<span class=lt>(Note: The "<code>make test</code>" step is not required, but |
| 244 |
useful because it runs a full suite of tests to verify that ExifTool is working |
| 245 |
properly on your system. The "<code>sudo make install</code>" command requires |
| 246 |
that you have su access, and will prompt for your password. This will make |
| 247 |
ExifTool and its documentation accessible to all users on your system. If you |
| 248 |
don't have su access, you can run ExifTool in your own account by moving |
| 249 |
"<code>exiftool</code>" and its "<code>lib</code>" directory to any convenient |
| 250 |
location, preferably somewhere in your PATH.)</span></li> |
| 251 |
</ol> |
| 252 |
<p>You can now run exiftool by typing "<code>exiftool</code>". Also, you can |
| 253 |
consult the ExifTool documentation with commands like:</p> |
| 254 |
<blockquote><pre class='code'>perldoc exiftool |
| 255 |
perldoc Image::ExifTool |
| 256 |
perldoc Image::ExifTool::TagNames |
| 257 |
</pre></blockquote> |
| 258 |
<p>or</p> |
| 259 |
<blockquote><pre class='code'>man exiftool |
| 260 |
man Image::ExifTool |
| 261 |
man Image::ExifTool::TagNames |
| 262 |
</pre></blockquote> |
| 263 |
|
| 264 |
<h3><a name="uninstall_Unix">Uninstalling</a></h3> |
| 265 |
<ol type='i'> |
| 266 |
<li>Type "<code>sudo make uninstall</code>" from the distribution directory. |
| 267 |
<br><span class=lt>(Note: Unfortunately, newer systems may give an <i>"Uninstall |
| 268 |
is unsafe and deprecated"</i> message even though uninstalling ExifTool is safe |
| 269 |
because it has no dependencies. If this happens, the necessary commands to |
| 270 |
remove the installed files will be listed, and these commands must be run |
| 271 |
manually.)</span></li> |
| 272 |
</ol> |
| 273 |
|
| 274 |
<hr> |
| 275 |
<p class='lf'><a href="index.html"><-- Back to ExifTool home page</a></p> |
| 276 |
</body> |
| 277 |
</html> |