IsImageFile
Syntax
IsImageFile( value )Arguments
Name
Type
Required
Description
Returns
Description
Example
// Check if a file is an image
if ( IsImageFile( "images/photo.png" ) ) {
img = ImageRead( "images/photo.png" );
}
// Check if a URL is an image
if ( IsImageFile( "https://example.com/image.jpg" ) ) {
img = ImageRead( "https://example.com/image.jpg" );
}Related BIFs
Notes
Was this helpful?
