{"id":27254,"date":"2022-11-20T15:06:39","date_gmt":"2022-11-20T23:06:39","guid":{"rendered":"https:\/\/www.podfeet.com\/blog\/?p=27254"},"modified":"2022-11-27T18:02:44","modified_gmt":"2022-11-28T02:02:44","slug":"smart-albums-focal-length","status":"publish","type":"post","link":"https:\/\/www.podfeet.com\/blog\/2022\/11\/smart-albums-focal-length\/","title":{"rendered":"Smart Albums in Photos by Focal Length"},"content":{"rendered":"<p>I&#8217;ve been working on smart albums inside Apple Photos and I&#8217;ve found some interesting things.<\/p>\n<p>Let\u2019s set up a problem to be solved. Let\u2019s say the next iPhone is coming out and you\u2019re trying to decide which model you might need. Perhaps you\u2019ve always gone top-of-the-line because of the cameras, but this year you\u2019re wondering whether that\u2019s actually justified.<\/p>\n<p>One of the differentiators of higher-end iPhones is their optical zoom capabilities. So let\u2019s say you have an iPhone 13 Pro and you\u2019re considering that upgrade to the 14 or 14 Pro. The 13 Pro has a 3X telephoto, but you\u2019re wondering how often you really use it. You might think you use it really often, but wouldn\u2019t empirical data to make that decision be even better?<\/p>\n<p>One way to gather data on which lenses you really use on your cameras is through Smart Albums in Apple Photos. The path to do this is more circuitous than I would have thought, which is why I\u2019m setting up this story.<\/p>\n<h3>How to Make a Smart Album by Device<\/h3>\n<p>In Apple Photos, start by selecting My Albums in the left sidebar. Now select File, New Smart Album.  Name your Smart Album something clever.  By default the condition for this new Smart Album will be Photo is favorite. In my example, I have 1417 favorite photos.<\/p>\n<figure style=\"float: center; margin: 10px\"><img decoding=\"async\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2022\/11\/New-Smart-Album.png\" alt=\"New Smart Album\"  title=\"New Smart Album.png\" width=\"599 \" height=\"154\"><figcaption style=\"text-align:center\">New Smart Album<\/figcaption><\/figure>\n<p>In my example, we want to find iPhone 13 Pro photos first, and then we\u2019ll narrow it down to find the ones with the telephoto lens.<\/p>\n<p>I can change the dropdown of the condition from \u201cPhoto\u201d to \u201cCamera Model\u201d. Change the second dropdown to \u201cIs\u201d and in the third dropdown enter the camera model, \u201ciPhone 13 Pro\u201d. It should start to autofill for you which helps with getting the spelling and spaces correctly entered.<\/p>\n<p>In my Photos library I now have a match for 3,825 photos and videos taken with my iPhone 13 Pro.<\/p>\n<figure style=\"float: center; margin: 10px\"><img decoding=\"async\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2022\/11\/iPhone-13-Pro-Smart-Album.png\" alt=\"IPhone 13 Pro Smart Album\"  title=\"iPhone 13 Pro Smart Album.png\" width=\"597 \" height=\"153\"><figcaption style=\"text-align:center\">IPhone 13 Pro Smart Album<\/figcaption><\/figure>\n<p>We now want to further filter this down to just those taken with the telephoto camera, but we have some work to do before we can figure out how to match the telephoto images only.<\/p>\n<h3>Filter to Only Telephoto Images Using Focal Length<\/h3>\n<p>In order to figure out the filter, we have to first find a photo taken with the telephoto lens. Scroll through your photos until you find one you suspect was taken with the telephoto and look at the Info panel to see if you\u2019re right.<\/p>\n<p>I found a photo I took off the coast of Iceland that says, \u201cTelephoto Camera &#8211; 77 mm f2.8\u201d. You might know what those numbers mean but I\u2019ll elaborate.  The 77 mm is the focal length of the lens that took the image, and the f2.8 (which is more properly written as a fraction: f\/2.8) is the aperture (opening) of the lens.<\/p>\n<figure style=\"float: right; margin-left: 10px\"><img decoding=\"async\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2022\/11\/iPhone-13-Pro-Example-Telephoto-Image.png\" alt=\"IPhone 13 Pro Example Telephoto Image\"  title=\"iPhone 13 Pro Example Telephoto Image.png\" width=\"450 \" height=\"446\"><figcaption style=\"text-align:center\">iPhone 13 Pro Example Telephoto Image at Focal Length 77 mm<\/figcaption><\/figure>\n<p>On a big-girl camera, you can change the aperture of the lens even while keeping the focal length fixed, but on iPhones, both of these attributes are fixed in the cameras. This means we can categorically say that any photo where the \u201cCamera Model is iPhone 13 Pro\u201d AND \u201cfocal length is 77mm\u201d should be iPhone 13 Pro photos taken with the 3X optical zoom. (I know it\u2019s really it\u2019s a telephoto because it doesn\u2019t zoom but they call it a zoom.)<\/p>\n<p>If we right-click on our Smart Album in the left sidebar of Photos we can choose \u201cEdit Smart Album\u201d. To the right of our first condition defining the camera model, there\u2019s a plus button to add another condition.<\/p>\n<p>The important thing to note as soon as you add a second condition is a dropdown above the conditions that says \u201cMatch\u201d and it\u2019s set to \u201call\u201d of the following conditions. In our effort, we do want to match photos that were taken with an iPhone 13 Pro <em>and<\/em> were taken with the telephoto.  It\u2019s important to know that you have this set to all because there could be smart albums where you want to see matches to one or more of the filters rather than all.<\/p>\n<p>The second condition defaults to \u201cdate added is in the last 30 days\u201d.  Let\u2019s change that first filter dropdown from \u201cdate added\u201d to \u201cfocal length\u201d because we know that photos taken with the telephoto will have a focal length of 77 mm.<\/p>\n<p>You are probably expecting me to say, \u201cAnd Bob\u2019s your uncle, we now have a smart album of photos taken with the telephoto lens on an iPhone 13 Pro.\u201d  Sadly, these conditions we just created match exactly <em>zero<\/em> images.<\/p>\n<figure style=\"float: center; margin: 10px\"><img decoding=\"async\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2022\/11\/iPhone-13-Pro-77mm-zero-results.png\" alt=\"IPhone 13 Pro 77mm zero results\"  title=\"iPhone 13 Pro 77mm zero results.png\" width=\"599 \" height=\"382\"><figcaption style=\"text-align:center\">iPhone 13 Pro at 77mm \u2192 Zero Items Matched<\/figcaption><\/figure>\n<h3>Why Doesn\u2019t This Work?<\/h3>\n<p>We\u2019re going to have to get nerdy to explain why this doesn\u2019t work. At some point in the history of photography, a convention was born to describe lenses in comparison to a 35 mm film camera. This comparison is related to how big the sensor is on the digital camera. I\u2019m definitely not going to dig into the details of this because it\u2019s a complex subject that others have more adeptly explained than I can.<\/p>\n<p>The thing to realize is that when we see the telephoto lens described as 77 mm in the info window of Apple Photos, that\u2019s not the <em>real<\/em> focal length.<\/p>\n<h3>exiftools to Find True Info<\/h3>\n<p>Every photo you take has a giant set of attributes stored with it in what\u2019s called the EXIF data. In the EXIF data you can find where it was taken, what time it was taken, what camera took it and more. Apple Photos is exposing you to a little bit of the EXIF data, but it\u2019s only showing you the 35mm equivalent of the focal length. We need to know the <em>real<\/em> focal length.<\/p>\n<p>If you throw a rock at the Mac App Store, you\u2019ll find tons of apps offering to expose the full EXIF data of your images. But I\u2019d like to suggest another method.  On the surface it sounds scary and hard, but I <em>promise<\/em> it\u2019s a three-step process and you\u2019ll learn a little bit too. These three simple steps will both be executed from the command line in the Terminal.<\/p>\n<p>The three steps are:<\/p>\n<ol>\n<li>Install Homebrew<\/li>\n<li>Install exiftool using Homebrew<\/li>\n<li>Run exiftool against an image<\/li>\n<\/ol>\n<p>Homebrew is what\u2019s called a package manager, which is essentially like an App Store but for free, nerdy, often open source command line programs.<\/p>\n<p>Open the Terminal first. It\u2019s buried in the Utilities folder within your Applications folder.<\/p>\n<p>In a browser, go to <a href=\"https:\/\/brew.sh\/\">brew.sh<\/a>. On that page you\u2019ll see in giant letters, \u201cInstall Homebrew\u201d. Below that is a black text area with a giant scary command in it.  To the right of it is an icon of a clipboard. If you click that clipboard, the giant scary command will be copied to your clipboard.<\/p>\n<figure style=\"float: center; margin: 10px\"><img decoding=\"async\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2022\/11\/Homebrew-Installation-Page.png\" alt=\"Homebrew Installation Page\"  title=\"Homebrew Installation Page.png\" width=\"600 \" height=\"425\"><figcaption style=\"text-align:center\">Homebrew Installation Page<\/figcaption><\/figure>\n<p>Go back to your Terminal window and paste the command you just copied and hit enter.  This will install Homebrew on your Mac. There\u2019s usually a vast amount of glop spit out on your screen, but in the words of Cousin Eddie in Chevy Chase\u2019s Christmas Vacation, \u201cIt\u2019s better to just let it (him) finish.\u201d<\/p>\n<p>When it stops barfing on your screen, you\u2019re ready to take step 2, installing exiftool.  This is the simplest installation you will ever do.<\/p>\n<p>Still in the terminal, simply type <code>brew install exiftool<\/code>. Again you might see a lot of glop on screen as it does the installation. With installs from the Mac App Store you only get a progress bar or circle while this kind of glop is going on in the background, so don\u2019t be afraid while watching it all go by.<\/p>\n<p>Two steps down \u2014 you now have Homebrew installed and you\u2019ve installed exiftool using Homebrew.<\/p>\n<p>We are finally ready to use exiftool on the image you found that says it\u2019s with the telephoto lens on your iPhone 13 Pro. Export the image to the Finder, let\u2019s say onto the Desktop.<\/p>\n<p>We now need to tell exiftool where to look for the image you want it to investigate. In your Terminal window type the <code>exiftool<\/code> command, followed by the path to the image. The path is on your Desktop, so the path is <code>~\/Desktop<\/code>. After that enter the name of your image including its extension. It might be .jpg, or jpeg, or even .HEIC if it was a Live Photo.<\/p>\n<p><code>exiftool ~\/Desktop YourImageName.extension<\/code><\/p>\n<p>When you hit enter after this command, you will be rewarded with a glorious list of data about your image. I haven\u2019t counted, but I think it\u2019s over 100 lines of information. Luckily for us, the true focal length is 5 lines from the bottom.<\/p>\n<figure style=\"float: center; margin: 10px\"><img decoding=\"async\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2022\/11\/iPhone-13-Pro-Telephoto-is-9.0-mm.png\" alt=\"IPhone 13 Pro Telephoto is 9 0 mm\"  title=\"iPhone 13 Pro Telephoto is 9.0 mm.png\" width=\"595 \" height=\"105\"><figcaption style=\"text-align:center\">iPhone 13 Pro Telephoto is 9.0 mm<\/figcaption><\/figure>\n<p>It says \u201cFocal Length: 9.0 mm (35 mm equivalent: 78.0 mm)\u201d. The alert amongst you will notice that the Info window for this very same image in Apple Photos said it was 77 mm, and I simply cannot explain that discrepancy.<\/p>\n<p>The important thing is that we now know that the real focal length is 9 mm.<\/p>\n<figure style=\"float: center; margin: 10px\"><img decoding=\"async\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2022\/11\/Smart-Album-iPhone-13-Pro-Focal-Length-9-mm-finds-315-Images.png\" alt=\"Smart Album iPhone 13 Pro Focal Length 9 mm finds 315 Images\"  title=\"Smart Album iPhone 13 Pro Focal Length 9 mm finds 315 Images.png\" width=\"599 \" height=\"187\"><figcaption style=\"text-align:center\">Smart Album iPhone 13 Pro Focal Length 9 mm finds 315 Images<\/figcaption><\/figure>\n<p>Now we can edit the Smart Album and add that the focal length must be 9 mm. In my Photos, the filters found a match to 315 images. Using the arrow keys, I flipped through the images it found while keeping the Info window open and every image it found was taken on the 13 Pro and said it was taken with the telephoto lens.<\/p>\n<h3>We Could Have Used the Aperture<\/h3>\n<p>There was another way to find our telephoto iPhone 13 Pro photos. Remember me talking about how the telephoto image had an aperture of f2.8? It turns out that number is not a 35 mm equivalent, it\u2019s an absolute number.<\/p>\n<p>In our Smart Album, we could have selected Aperture for the match and set it to look for f\/2.8 and it would have found the same 315 photos.<\/p>\n<figure style=\"float: center; margin: 10px\"><img decoding=\"async\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2022\/11\/iPhone-13-Pro-with-Aperture-f2.8-Finds-315-Images.png\" alt=\"IPhone 13 Pro with Aperture f 2 8 Finds 315 Images\"  title=\"iPhone 13 Pro with Aperture f:2.8 Finds 315 Images.png\" width=\"597 \" height=\"190\"><figcaption style=\"text-align:center\">iPhone 13 Pro with Aperture f\/2.8 Finds 315 Images<\/figcaption><\/figure>\n<p>But if I\u2019d told you that first, you never would have installed Homebrew and exiftool, and you would have missed out on the feeling of power having tamed a little bit of the Terminal.<\/p>\n<h3>This Doesn\u2019t Work on the iPhone 14 Pro<\/h3>\n<p>Here\u2019s another fun fact. Searching for telephoto image on an iPhone 14 Pro is much harder than it is on the 13 Pro.   According to exiftool, the focal length of the 3X camera is 6.9 mm, but it says the same thing for the 1X camera. It also says the aperture is f1.8 for both lenses.<\/p>\n<p>I\u2019m going to give this to you as a geek challenge &#8211; how can I make a Smart Album in Apple Photos that finds just the 2X or just the 3X images taken with an iPhone 14 Pro?<\/p>\n<p>There\u2019s a reasonably good chance I\u2019m missing something or confusing myself, but I\u2019ve been working on this for a couple of months on and off and I can\u2019t figure out how to do it.<\/p>\n<p>One other oddity of the iPhone 14 Pro photos. You can only see the name of the lens if you\u2019re in macOS Ventura (or on iOS 16). In macOS Monterey, images taken with one of the back three cameras all say \u201cTriple Back Camera\u201d.<\/p>\n<h3>Bottom Line<\/h3>\n<p>I hope you enjoyed learning how to use a command line tool to investigate your photos to a lot more data about them.  If you ever need to make a decision based on data about your images, now you have it.<\/p>\n<p>The bottom line for me is that out of the thousands of photos I took in a year with my iPhone 13 Pro, only 315 of them were with the 2X telephoto lens.  Good thing I bought an iPhone 14 Pro so I have a 3X telephoto lens now too!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working on smart albums inside Apple Photos and I&#8217;ve found some interesting things. Let\u2019s set up a problem to be solved. Let\u2019s say the next iPhone is coming out and you\u2019re trying to decide which model you might need. Perhaps you\u2019ve always gone top-of-the-line because of the cameras, but this year you\u2019re wondering [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":27252,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[147],"tags":[2808,168,239,4613,5482,2092,99,4176,229],"class_list":["post-27254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-posts","tag-aperture","tag-apple-photos","tag-camera","tag-exiftool","tag-focal-length","tag-homebrew","tag-lens","tag-lenses","tag-terminal"],"jetpack_featured_media_url":"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2022\/11\/iPhone-13-Pro-77mm-zero-results.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/27254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/comments?post=27254"}],"version-history":[{"count":5,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/27254\/revisions"}],"predecessor-version":[{"id":27295,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/27254\/revisions\/27295"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media\/27252"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=27254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=27254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=27254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}