Gin
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ExifMetadata Class Reference

Reads EXIF (Exchangeable Image File Format) metadata from JPEG images. More...

#include <gin_exifmetadata.h>

Inheritance diagram for ExifMetadata:

Public Member Functions

 ExifMetadata ()
 
virtual ~ExifMetadata ()
 
juce::StringPairArray getAllMetadata () const
 
juce::Image getThumbnailImage ()
 

Static Public Member Functions

static ExifMetadatacreate (const juce::uint8 *data, int sz)
 

Additional Inherited Members

Detailed Description

Reads EXIF (Exchangeable Image File Format) metadata from JPEG images.

ExifMetadata extracts camera and image information embedded in JPEG files, including camera settings, GPS coordinates, timestamps, and technical details. EXIF data is commonly generated by digital cameras and smartphones.

Key Features:

Common EXIF tags include:

Usage:

for (auto* meta : metadata)
{
if (auto* exif = dynamic_cast<ExifMetadata*>(meta))
{
StringPairArray data = exif->getAllMetadata();
String camera = data["Make"] + " " + data["Model"];
String dateTime = data["DateTime"];
Image thumbnail = exif->getThumbnailImage();
}
}
Reads EXIF (Exchangeable Image File Format) metadata from JPEG images.
Definition gin_exifmetadata.h:59
static bool getFromImage(juce::InputStream &is, juce::OwnedArray< ImageMetadata > &metadata)
A lightweight 2D point class for projects that don't use juce_graphics.
Definition gin_point.h:25
See also
ImageMetadata, XmpMetadata

Constructor & Destructor Documentation

◆ ExifMetadata()

ExifMetadata::ExifMetadata ( )

◆ ~ExifMetadata()

virtual ExifMetadata::~ExifMetadata ( )
virtual

Member Function Documentation

◆ create()

static ExifMetadata * ExifMetadata::create ( const juce::uint8 *  data,
int  sz 
)
static

◆ getAllMetadata()

juce::StringPairArray ExifMetadata::getAllMetadata ( ) const
virtual

Implements ImageMetadata.

◆ getThumbnailImage()

juce::Image ExifMetadata::getThumbnailImage ( )

The documentation for this class was generated from the following file: