Media_GetImageInfo ( container )
Media_GetImageInfo returns a text block containing detailed information about the image.
|container||The location of the image.
The container parameter can be:
Returns image info, such as:
Height (px): 474
Width (px): 396
Depth (bits): 24
V Resolution (dpi): 72
H Resolution (dpi): 72
Size (bytes): 61521
Compressor Type: jpeg
Compressor Description: Photo – JPEG
The values of the response – such as Height, Width, Size, etc. — can be easily isolated using the Media_ExtractInfo function (see below).
Note that Quality for uncompressed formats will be 1024 and for compressed is 512. Because it is not possible to determine from the result image how much the original image was compressed.
To get the image info of a picture stored in a container field named “Picture 1”:
Media_GetImageInfo ( MyTable::Picture 1 )
To get the info of an external image file named “nirvana.jpg” located on the desktop:
Media_GetImageInfo ( “.D/nirvana.jpg” )
To get the info of an external image file whose filepath and name are stored in a text field named “Image Location”:
Media_GetImageInfo ( MyTable::Image Location )