ComfyUI > Nodes > ComfyUI-Sharp > Load Image with EXIF (Focal Length)

ComfyUI Node: Load Image with EXIF (Focal Length)

Class Name

LoadImageWithExif

Category
SHARP
Author
PozzettiAndrea (Account age: 2240days)
Extension
ComfyUI-Sharp
Latest Updated
2025-12-21
Github Stars
0.07K

How to Install ComfyUI-Sharp

Install this extension via the ComfyUI Manager by searching for ComfyUI-Sharp
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Sharp in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Load Image with EXIF (Focal Length) Description

Loads images and extracts EXIF metadata, providing 35mm equivalent focal length for AI art.

Load Image with EXIF (Focal Length):

The LoadImageWithExif node is designed to enhance your image processing workflow by not only loading images but also extracting valuable EXIF metadata, specifically the focal length. This node is particularly useful for AI artists who need to incorporate camera settings into their creative processes, as it provides the focal length in 35mm equivalent, which is a standard reference in photography. By integrating this node into your workflow, you can ensure that the images you work with retain important photographic context, which can be crucial for tasks that require an understanding of the original image capture settings. The node seamlessly handles image loading and metadata extraction, making it a powerful tool for those who wish to maintain the integrity of photographic data in their projects.

Load Image with EXIF (Focal Length) Input Parameters:

image

The image parameter is a required input that specifies the path to the image file you wish to load and process. This parameter is crucial as it determines the source image from which the EXIF data will be extracted. The node supports a variety of image formats, ensuring flexibility in your workflow. The image file should be located in the input directory specified by the system, and the parameter allows for image upload functionality to facilitate easy selection.

default_focal_mm

The default_focal_mm parameter is an optional input that sets a default focal length value in millimeters, used when the EXIF data does not contain this information. This parameter is important for maintaining consistency in your image processing tasks, especially when dealing with images that lack complete metadata. The default value is 30.0 mm, with a range from 1.0 to 500.0 mm, allowing you to specify a focal length that best suits your needs. Adjusting this parameter can impact the interpretation of the image's perspective and depth, making it a valuable tool for fine-tuning your results.

Load Image with EXIF (Focal Length) Output Parameters:

image

The image output is a tensor representation of the loaded image, ready for further processing or analysis. This output is crucial for integrating the image into your AI-driven workflows, as it provides a standardized format that can be easily manipulated or fed into other nodes or models. The tensor format ensures compatibility with various machine learning frameworks, facilitating seamless transitions between different stages of your project.

mask

The mask output is a tensor that represents the alpha channel or transparency mask of the image. This output is particularly useful for tasks that require precise control over image transparency, such as compositing or layering. The mask allows you to isolate specific parts of the image, enabling more sophisticated image manipulations and effects.

focal_length_mm

The focal_length_mm output provides the focal length extracted from the image's EXIF metadata, expressed in millimeters. This output is essential for understanding the photographic context of the image, as the focal length influences the image's perspective and depth of field. By accessing this information, you can make informed decisions about how to process or interpret the image, ensuring that your creative work aligns with the original photographic intent.

Load Image with EXIF (Focal Length) Usage Tips:

  • Ensure that your images are stored in the designated input directory to facilitate easy access and processing by the node.
  • Use the default_focal_mm parameter to set a realistic focal length for images that lack complete EXIF data, ensuring consistency in your results.
  • Take advantage of the mask output to perform advanced image manipulations, such as selective editing or compositing, by isolating specific areas of the image.

Load Image with EXIF (Focal Length) Common Errors and Solutions:

ComfyUI folder_paths not available

  • Explanation: This error occurs when the folder_paths module is not accessible, which is necessary for locating image files.
  • Solution: Ensure that the folder_paths module is correctly installed and configured in your environment. Verify that the input directory is set up properly.

Invalid image file: <image>

  • Explanation: This error indicates that the specified image file does not exist or is not accessible in the input directory.
  • Solution: Check that the image file is correctly named and located in the designated input directory. Ensure that the file path is accurate and that the file is not corrupted.

EXIF data extraction failed

  • Explanation: This error may occur if the image does not contain EXIF data or if the data is corrupted.
  • Solution: Verify that the image file contains valid EXIF metadata. If not, consider using the default_focal_mm parameter to provide a fallback focal length value.

Load Image with EXIF (Focal Length) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Sharp
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.