[file_isanimatedgif]

Description

Link: [file_isanimatedgif]
Author: Jason Huck
Category: File
Version: 8.x
License:
Posted: Oct. 26, 2005
Updated: Jan. 16, 2006
More by this author...
Returns true if the given file is an animated GIF.

Parameters

none


Sample Usage

var('myFile' = '/path/to/file.gif');
file_isanimatedgif($myFile);

-> true
						

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
define_tag(
	'isanimatedgif',
	-namespace='file_',
	-priority='replace',
	-description='Returns true if the specified file is an animated GIF.'
);
	protect;
		local('img') = image(params->first);
		#img->describe( -short) >> '.gif[0]' ? return(true) | return(false);
		
		handle_error;
			return(false);
		/handle_error;
	/protect;
/define_tag;

 

Comments

none

Email:


Password:



Newest

Most Popular