PNGMetadata (PNG info)
ts
function PNGMetadata(imgFile: string): boolean;
This function extract various meta-information about a PNG image from the imgFile
file.
Example
ts
{
mdata = PNGMetadata('./self_portrait.png');
Log(JSON.stringify(mdata));
}
The example above produces a result similar to this:
json
{
"Valid": true,
"Height": 360,
"Width": 480
}