Image.GetFileInfo

table Image.GetFileInfo (

string Filename )

Description

Returns the width, height and bit depth of an image file.

Parameters

Filename

(string) The full path to the image file.

Returns

(table) A table containing the object's pixel dimensions and bit depth, indexed by values "Width", "Height" and "BitDepth." If an error occurs (for example, the file doesn't exist), nil will be returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions