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

Reads IPTC (International Press Telecommunications Council) metadata from images. More...

#include <gin_iptcmetadata.h>

Inheritance diagram for IptcMetadata:

Public Member Functions

 IptcMetadata ()
 
virtual ~IptcMetadata ()
 
juce::StringPairArray getAllMetadata () const
 

Static Public Member Functions

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

Additional Inherited Members

Detailed Description

Reads IPTC (International Press Telecommunications Council) metadata from images.

IptcMetadata extracts press and journalism-specific metadata commonly used by news organizations, photo agencies, and professional photographers. IPTC data includes captions, keywords, copyright, and byline information.

Common IPTC fields:

Usage:

for (auto* meta : metadata)
{
if (auto* iptc = dynamic_cast<IptcMetadata*>(meta))
{
StringPairArray data = iptc->getAllMetadata();
String caption = data["Caption"];
String byline = data["Byline"];
String copyright = data["Copyright Notice"];
String keywords = data["Keywords"];
}
}
static bool getFromImage(juce::InputStream &is, juce::OwnedArray< ImageMetadata > &metadata)
Reads IPTC (International Press Telecommunications Council) metadata from images.
Definition gin_iptcmetadata.h:54
A lightweight 2D point class for projects that don't use juce_graphics.
Definition gin_point.h:25
See also
ImageMetadata, XmpMetadata, ExifMetadata

Constructor & Destructor Documentation

◆ IptcMetadata()

IptcMetadata::IptcMetadata ( )

◆ ~IptcMetadata()

virtual IptcMetadata::~IptcMetadata ( )
virtual

Member Function Documentation

◆ create()

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

◆ getAllMetadata()

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

Implements ImageMetadata.


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