{"id":1328,"date":"2020-06-10T17:16:58","date_gmt":"2020-06-10T15:16:58","guid":{"rendered":"http:\/\/tristanromain.com\/?p=1328"},"modified":"2020-10-28T10:55:51","modified_gmt":"2020-10-28T09:55:51","slug":"can-you-trust-maybe-just-a-little-bit-the-focus-distance-recorded-in-the-exif-metadata","status":"publish","type":"post","link":"https:\/\/tristanromain.com\/index.php\/2020\/06\/10\/can-you-trust-maybe-just-a-little-bit-the-focus-distance-recorded-in-the-exif-metadata\/","title":{"rendered":"Can you trust (maybe just a little bit) the focus distance recorded in the EXIF metadata?"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><strong>Why do we care?<\/strong><\/p>\n\n\n\n<p>In theory, lenses send the focus distance information to the camera. It is recorded as an EXIF metadata in the file. Using it can have different advantages if you are interested in the distance at which the photo is supposed to be in focus.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Short answer<\/strong><\/p>\n\n\n\n<p>You need to try with you own gear, but it is very unlikely that you can trust, even just a little bit, the information provided about the focus distance.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Long answer<\/strong><\/p>\n\n\n\n<p>This is well known fact. In many forum, people often report you can\u2019t trust this distance information. But it is good to be sure. So, I did some tests with the following gears: Nikon D750, Nikon Z50, and different lenses (20 mm f\/1.8G, 70-200 f\/2.8 II, \u00a0\u2026). All came to the same conclusion: the distance recorded is really not accurate. How much inaccurate ? Let me give you the results:<\/p>\n\n\n\n<p><em>Example 1<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1437\" height=\"731\" src=\"https:\/\/i0.wp.com\/tristanromain.com\/wp-content\/uploads\/2020\/06\/Image-15.jpg?fit=525%2C267\" alt=\"\" class=\"wp-image-1329\" srcset=\"https:\/\/tristanromain.com\/wp-content\/uploads\/2020\/06\/Image-15.jpg 1437w, https:\/\/tristanromain.com\/wp-content\/uploads\/2020\/06\/Image-15-300x153.jpg 300w, https:\/\/tristanromain.com\/wp-content\/uploads\/2020\/06\/Image-15-1024x521.jpg 1024w, https:\/\/tristanromain.com\/wp-content\/uploads\/2020\/06\/Image-15-768x391.jpg 768w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/figure>\n\n\n\n<p>In reality, the image is at infinity focus, not 1.3 meters like written into the EXIF metadata&#8230;<\/p>\n\n\n\n<p><em>Example 2<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1432\" height=\"736\" src=\"https:\/\/i2.wp.com\/tristanromain.com\/wp-content\/uploads\/2020\/06\/Image-13.jpg?fit=525%2C270\" alt=\"\" class=\"wp-image-1330\" srcset=\"https:\/\/tristanromain.com\/wp-content\/uploads\/2020\/06\/Image-13.jpg 1432w, https:\/\/tristanromain.com\/wp-content\/uploads\/2020\/06\/Image-13-300x154.jpg 300w, https:\/\/tristanromain.com\/wp-content\/uploads\/2020\/06\/Image-13-1024x526.jpg 1024w, https:\/\/tristanromain.com\/wp-content\/uploads\/2020\/06\/Image-13-768x395.jpg 768w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/figure>\n\n\n\n<p>This one was pretty accurate, to be fair.<\/p>\n\n\n\n<p>With a Nikon Z50, you just don\u2019t have the focus distance recorded. Same issue with some mirrorless cameras like Panasonic LX100 or Fuji X100S.<\/p>\n\n\n\n<p>I have also tried with different Canon bodies, but same problem: not too bad at very close distance, but totally irrelevant as soon as the distance focus is above a couple of meters.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>Make your own tests with your gear, but don\u2019t expect much. <\/p>\n\n\n\n<p>There is some hope if what matters is distance of images with a focus distance <strong>below a few meters<\/strong>. But beyond this, I would find a different way to achieve the goal, whatever it may be as the focus distance information is irrelevant, when it exists.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why do we care? In theory, lenses send the focus distance information to the camera. It is recorded as an EXIF metadata in the file. Using it can have different advantages if you are interested in the distance at which the photo is supposed to be in focus. Short answer You need to try with [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1331,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","osh_disable_topbar_sticky":"default","osh_disable_header_sticky":"default","osh_sticky_header_style":"default","osh_sticky_header_effect":"","osh_custom_sticky_logo":0,"osh_custom_retina_sticky_logo":0,"osh_custom_sticky_logo_height":0,"osh_background_color":"","osh_links_color":"","osh_links_hover_color":"","osh_links_active_color":"","osh_links_bg_color":"","osh_links_hover_bg_color":"","osh_links_active_bg_color":"","osh_menu_social_links_color":"","osh_menu_social_hover_links_color":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[4,5],"tags":[263,264,262,261,265],"class_list":["post-1328","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-photography-2","category-test","tag-distance","tag-exif","tag-focus","tag-focus-distance","tag-metadata","entry","has-media"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/tristanromain.com\/wp-content\/uploads\/2020\/06\/Image-18.jpg","_links":{"self":[{"href":"https:\/\/tristanromain.com\/index.php\/wp-json\/wp\/v2\/posts\/1328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tristanromain.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tristanromain.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tristanromain.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tristanromain.com\/index.php\/wp-json\/wp\/v2\/comments?post=1328"}],"version-history":[{"count":2,"href":"https:\/\/tristanromain.com\/index.php\/wp-json\/wp\/v2\/posts\/1328\/revisions"}],"predecessor-version":[{"id":1333,"href":"https:\/\/tristanromain.com\/index.php\/wp-json\/wp\/v2\/posts\/1328\/revisions\/1333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tristanromain.com\/index.php\/wp-json\/wp\/v2\/media\/1331"}],"wp:attachment":[{"href":"https:\/\/tristanromain.com\/index.php\/wp-json\/wp\/v2\/media?parent=1328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tristanromain.com\/index.php\/wp-json\/wp\/v2\/categories?post=1328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tristanromain.com\/index.php\/wp-json\/wp\/v2\/tags?post=1328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}