Skip to content

Commit

Permalink
rebuild docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Apr 12, 2021
1 parent 805c61b commit d85daa9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ <h3>Writing tags</h3>
and look under the &quot;Writable&quot; column.</p>
<p>If you apply malformed values or ask to write to tags that aren&#39;t
supported, the returned <code>Promise</code> will be rejected.</p>
<p>Only string and numeric primitive are supported as values to the object</p>
<p>Only string and numeric primitive are supported as values to the object.</p>
<p>Write a comment to the given file so it shows up in the Windows Explorer
Properties panel:</p>
<pre><code class="language-js"><span style="color: #001080">exiftool</span><span style="color: #000000">.</span><span style="color: #795E26">write</span><span style="color: #000000">(</span><span style="color: #A31515">&quot;path/to/file.jpg&quot;</span><span style="color: #000000">, { </span><span style="color: #001080">XPComment:</span><span style="color: #000000"> </span><span style="color: #A31515">&quot;this is a test comment&quot;</span><span style="color: #000000"> })</span>
Expand All @@ -271,6 +271,12 @@ <h3>Writing tags</h3>
<a href="https://sno.phy.queensu.ca/~phil/exiftool/TagNames/Shortcuts.html">AllDates</a>
shortcut) to 4:56pm UTC on February 6, 2016:</p>
<pre><code class="language-js"><span style="color: #001080">exiftool</span><span style="color: #000000">.</span><span style="color: #795E26">write</span><span style="color: #000000">(</span><span style="color: #A31515">&quot;path/to/file.jpg&quot;</span><span style="color: #000000">, { </span><span style="color: #001080">AllDates:</span><span style="color: #000000"> </span><span style="color: #A31515">&quot;2016-02-06T16:56:00&quot;</span><span style="color: #000000"> })</span>
</code></pre>
<p>Write to a specific metadata group&#39;s tag, prefix the tag name with the group.
(TypeScript users: you&#39;ll need to cast to make this compile).</p>
<pre><code class="language-js"><span style="color: #001080">exiftool</span><span style="color: #000000">.</span><span style="color: #795E26">write</span><span style="color: #000000">(</span><span style="color: #A31515">&quot;path/to/file.jpg&quot;</span><span style="color: #000000">, {</span>
<span style="color: #000000"> </span><span style="color: #A31515">&quot;IPTC:CopyrightNotice&quot;</span><span style="color: #001080">:</span><span style="color: #000000"> </span><span style="color: #A31515">&quot;© 2021 PhotoStructure, Inc.&quot;</span><span style="color: #000000">,</span>
<span style="color: #000000">})</span>
</code></pre>
<a href="#always-beware-timezones" id="always-beware-timezones" style="color: inherit; text-decoration: none;">
<h3>Always Beware: Timezones</h3>
Expand Down

0 comments on commit d85daa9

Please sign in to comment.