<article>
<section>
<h2><span style="color:#ffa3d3">class</span> <strong>Image</strong></h2>
<p class="comment">The <span class="identifier">Image</span> API represents a single image scraped from the live
feed It integrates with the Deno KV data store and the underlying file-system to provide a unified API for
reading/writing the image data. This class provides I/O functionality for reading/writing the data to the KV
data store as well as the underlying file-system.</p>
<p class="comment">It's important to note our API's file naming convention. Each image is named after the date and
time it was taken, in UTC. The date is used as the folder name, and the time is used as the file name:</p>
<pre
class="jsdoc m-0 p-0"><code>`2023-07-09/12_34_56.jpg` → <span style="color:#99ccff">2023-07-09T12:34:56Z</span></code></pre>
</section>
<br>
<hr><br>
<section>
<h4 class="identifier inline-block m-0 p-0"><a href="#constructor" id="constructor" title="constructor"
class="identifier">constructor</a></h4><span
class="punctuation"></span><span>(</span><br /><span> </span><span style="color:#ffa3d3">date: </span><span
style="color:#c1ffa4">string</span> | <span style="color:#c1ffa4">number</span> | <span
style="color:#99ccff">Date</span>,<br> <span class="argument">data: </span><span
class="type">BufferSource</span><span style="opacity:0.5"> | <span class="type">null</span></span>,<br> <span
style="color:#ffa3d3">path</span><span class="punctuation">?: </span><span class="type">string</span> | <span
class="type">URL</span><span style="opacity:0.5"> | <span style="color:#c1ffa4">null</span></span>,<br> <span
style="color:#ffa3d3">latest</span><span class="punctuation">?:</span> <span
style="color:#c1ffa4">boolean</span> <span style="opacity:0.5">| <span
...