PNGMetadata (extract PNG info)

function PNGMetadata(imgFile: string): boolean

This function extract various meta-information about a PNG image from a file (imgFile).

Example:

{
  mdata = PNGMetadata('./self_portrait.png');
  Log(JSON.stringify(mdata));
}

The example above produces a result similar to this:

{
  "Height": 360,
  "Valid": true,
  "Width": 480
}