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

Reads simple text comment metadata from image files. More...

#include <gin_commentmetadata.h>

Inheritance diagram for CommentMetadata:

Public Member Functions

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

Static Public Member Functions

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

Additional Inherited Members

Detailed Description

Reads simple text comment metadata from image files.

CommentMetadata extracts basic comment fields that some image formats support. This is the simplest form of metadata, typically just a single text string describing or annotating the image.

JPEG comment segments and similar simple metadata formats are handled by this class. Unlike EXIF, XMP, or IPTC, comments don't have structured fields.

Usage:

for (auto* meta : metadata)
{
if (auto* comment = dynamic_cast<CommentMetadata*>(meta))
{
StringPairArray data = comment->getAllMetadata();
String commentText = data["Comment"];
}
}
Reads simple text comment metadata from image files.
Definition gin_commentmetadata.h:43
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, ExifMetadata

Constructor & Destructor Documentation

◆ CommentMetadata()

CommentMetadata::CommentMetadata ( )

◆ ~CommentMetadata()

virtual CommentMetadata::~CommentMetadata ( )
virtual

Member Function Documentation

◆ create()

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

◆ getAllMetadata()

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

Implements ImageMetadata.


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