ifImageMetadata

Implemented by

NameDescription
roImageMetadataThe roImageMetadata component provides developers access to image file metadata included in many .jpg EXIF headers

Supported methods

SetUrl(url as String) as Void

Description

Sets the URL to the image. Only file URLs are supported

Parameters

NameTypeDescription
urlStringThe URL of the image.

GetMetadata() as Object

Description

Returns a set of simple and common image metadata

Return Value

An associative array containing the following key-value pairs with image metadata:

NameTypeDescription
widthIntegerWidth of the image in pixels
heightIntegerHeight of the image in pixels
orientationString
  • "Top-left"
  • "Top-right"
  • "Bottom-right"
  • "Bottom-left"
  • "Left-top"
  • "Right-top"
  • "Right-bottom"
  • "Left-bottom"
datetimeroDateTimeThe creation time of the image such as the time a photo was taken
commentStringUser specified comment string. This is often referred to as a caption

GetThumbnail() as Object

Description

Returns a thumbnail image if one is embedded in the image metadata and the corresponding associative array with image data. This only generates a thumbnail if one exists.

Return Value

An associative array that with bytes and type keys with the image data:

NameTypeDescription
bytesroByteArrayThe image data
TypeIntegerThe type of image, which is most likely "image/jpeg", but could also be "image/png".

GetRawExif() as Object

Description

Returns all of the raw EXIF metadata.

Return Value

An associative array with all of the raw EXIF metadata. See the EXIF section for details about EXIF metadata.

GetRawExifTag(ifd as Integer, tagnum as Integer) as Dynamic

Description

Returns the raw data for an Exif tag. The method provides direct access to a specific raw EXIF tag

Parameters

NameTypeDescription
ifdIntegerThe ifd of the Exif tag.
tagnumIntegerThe tag number of the Exif tag.

Return Value

The raw data of an Exif tag. It the Exif tag doesn't exist it returns invalid.