Brian Dunning's FileMaker Custom Functions

phpGetImageInfo ( theFilePath )

Return info about an image file

  Average rating: 4.5 (28 votes) Log in to vote

Mark DeNyse   Mark DeNyse - Show more from this author
Driftwood Interactive

Share on Facebook Share on Twitter

  Sample input:
  Sample output:
width="640" height="480"

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Return 7 lines information about the given image file

[1] Width
[2] Height
[3] Image Type
[4] HTML width/height attributes string
[5] Mime type
[6] Num Channels (3 for RGB, 4 for CMYK)
[7] Bits (bits per color)

Example script usage:

Set Variable[$imageInfo, Value: phpGetImageInfo($theImageFilePath)]

Set Variable[$imageType, Value: GetValue($imageInfo, 3)]

Requires SmartPill PHP plug-in from Scodio



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: