ImageMetadataProperty

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the metadata of <mImage>
Associationscom.livecode.canvas
Summary

the metadata associated with an image.

Parameters
NameTypeDescription
mImage

An expression which evaluates to an image.

Example
// Load an image from a file
variable tImage as Image
put image from file "images/logo.png" into tImage

// get the image metadata
variable tMetadata as Array
put the metadata of tImage into tMetadata

// get image density in DPI from the image metadata
variable tDPI as Number
if "density" is among the keys of tMetadata then
	put tMetadata["density"] into tDPI
else
	put 72 into tDPI
end if
Description

An array containing metadata associated with an image.

Tagscanvas