<story><title>Exploring EXIF</title><url>https://hturan.com/writing/exploring-exif</url></story><parent_chain></parent_chain><comment><author>rhettbull</author><text>I&amp;#x27;m the author of the osxphotos[0] tool mentioned in the article. For photos in an Apple Photos library, osxphotos gives you access to a rich set of metadata beyond what&amp;#x27;s in the actual EXIF&amp;#x2F;IPTC&amp;#x2F;XMP of the image. Apple performs object classification and other AI techniques on your images but generally doesn&amp;#x27;t expose this to the user. For example, photos are categorized as to object in them (dog, cat, breed of dog, etc.), rich reverse geolocation info (neighborhood, landmarks, etc.) and an interesting set of scores such as &amp;quot;overall aesthetic&amp;quot;, &amp;quot;pleasant camera tilt&amp;quot;, &amp;quot;harmonious colors&amp;quot;, etc. These can be queried using osxphotos, either from the command line, or in your own python code. (Ref API docs[1])&lt;p&gt;For example, to find your &amp;quot;best&amp;quot; photos based on overall aesthetic score and add them to the album &amp;quot;Best Photos&amp;quot; you could run:&lt;p&gt;osxphotos query --query-eval &amp;quot;photo.score.overall &amp;gt; 0.8&amp;quot; --add-to-album &amp;quot;Best Photos&amp;quot;&lt;p&gt;To find good photos with trees in them you could try something like:&lt;p&gt;osxphotos query --query-eval &amp;quot;photo.score.overall &amp;gt; 0.5&amp;quot; --label Tree --add-to-album &amp;quot;Good Tree Photos&amp;quot;&lt;p&gt;There&amp;#x27;s quite a bit of other interesting data in Photos that you can explore with osxphotos.  Run `osxphotos inspect` and it will show you all the metadata for whichever photo is currently selected in the Photos app.&lt;p&gt;[0] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;RhetTbull&amp;#x2F;osxphotos&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;RhetTbull&amp;#x2F;osxphotos&lt;/a&gt;
[1] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;rhettbull.github.io&amp;#x2F;osxphotos&amp;#x2F;&quot; rel=&quot;nofollow noreferrer&quot;&gt;https:&amp;#x2F;&amp;#x2F;rhettbull.github.io&amp;#x2F;osxphotos&amp;#x2F;&lt;/a&gt;</text></comment>
<story><title>Exploring EXIF</title><url>https://hturan.com/writing/exploring-exif</url></story><parent_chain></parent_chain><comment><author>Figs</author><text>&amp;gt;  the EXIF data marker (FFE1)&lt;p&gt;This isn&amp;#x27;t quite right. That&amp;#x27;s a JPEG application specific marker (APP1). It indicates that some additional data is embedded in the JPEG file at that point which should be interpreted in an application specific manner (e.g. skipped if the program doesn&amp;#x27;t know how to handle it). That could be Exif tags but could also be other things (like XMP). An APP1 segment can be distinguished as Exif data based on the presence of the &amp;quot;Exif&amp;quot; string immediately after the segment size. (The tags themselves are stored in essentially a TIFF file embedded after the Exif identifier, if you&amp;#x27;re curious.)</text></comment>