exif-decoder
Reactive icon

EXIF Decoder

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 25 Mar (3 days ago)
 by 
Eone technologies pvt ltd
0.0
 (0 ratings)
exif-decoder

EXIF Decoder

Documentation
1.0.0

Overview

The EXIF Decoder is a utility component designed to extract and interpret metadata embedded within image files. Modern cameras and smartphones automatically store EXIF (Exchangeable Image File Format) information inside photos—details such as camera model, capture date, GPS coordinates, orientation, and more. This component decodes that metadata and exposes it in a structured, developer-friendly format.

Whether you're building a photo management system, a geolocation-based application, or an auditing tool, the EXIF Decoder provides a reliable way to access hidden image information directly inside your application logic.

Key Capabilities

1. Camera Information Extraction

  • Reads camera Make (e.g., Canon, Nikon, Apple)

  • Reads camera Model (e.g., iPhone 14 Pro, EOS 80D)

  • Combines them into a clean, readable string

2. Date & Time Metadata

  • Retrieves the DateTime tag from EXIF

  • Useful for sorting, organizing, or validating image capture times

3. GPS Coordinate Decoding

  • Extracts GPSLatitude and GPSLongitude

  • Converts rational EXIF GPS values into decimal degrees

  • Supports hemisphere references (N/S/E/W)

  • Enables mapping, geotagging, and location-based workflows

4. Structured Output

The decoder returns a clean object containing:

  • CameraModel

  • DateTaken

  • Latitude

  • Longitude

This makes it easy to plug into UI elements, logs, or downstream logic.

How It Works

  1. Input: A Base64-encoded image is passed into the decoder.

  2. Parsing: The component reads the EXIF block embedded in the image.

  3. Decoding:

    • Camera fields are extracted as plain text

    • Date fields are normalized

    • GPS fields are converted from EXIF rational arrays to decimal coordinates

  4. Output Mapping: The decoded values are assigned to output parameters for immediate use in your application.


Technical Breakdown

EXIF Parsing

The decoder uses a JavaScript-based EXIF parser to read metadata from Base64 images. It gracefully handles missing or partial EXIF blocks, ensuring the component never breaks your flow.

GPS Conversion

EXIF GPS values are stored as arrays of rationals (e.g., ["40/1", "26/1", "1234/100"]). The decoder:

  • Converts each rational to a float

  • Applies hemisphere reference

  • Produces a standard decimal coordinate

This makes the output compatible with maps, APIs, and GIS tools.

Benefits

  • No external dependencies or server-side libraries

  • Works directly with Base64 images

  • Fast, lightweight, and easy to integrate

  • Handles missing EXIF fields gracefully

  • Ideal for mobile and web apps built on OutSystems or similar platforms