ImageAnalysis: ezcImageAnalyzerPhpHandler
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcImageAnalyzerPhpHandler
|
Class to retrieve information about a given image file. [
source]
Parents
ezcImageAnalyzerHandler
|
--ezcImageAnalyzerPhpHandler
Inherited Constants
From
ezcImageAnalyzerHandler:
Inherited Member Variables
From
ezcImageAnalyzerHandler:
Method Summary
|
public ezcImageAnalyzerData |
analyzeImage(
$file )
Analyze the image for detailed information. |
|
public string|bool |
analyzeType(
$file )
Analyzes the image type. |
|
public bool |
canAnalyze(
$mime )
Returns if the handler can analyze a given MIME type. |
|
public bool |
isAvailable(
)
Checks wether the GD handler is available on the system. |
Inherited Methods
From
ezcImageAnalyzerHandler :
Methods
analyzeImage
Analyze the image for detailed information.
Parameters
| Name |
Type |
Description |
$file |
string |
The file to analyze. |
Throws
| Class | Description |
ezcImageAnalyzerFileNotProcessableException |
If image file can not be processed. |
Redefinition of
analyzeType
string|bool analyzeType(
string
$file )
Analyzes the image type.
This method analyzes image data to determine the MIME type. This method returns the MIME type of the file to analyze in lowercase letters (e.g. "image/jpeg") or false, if the images MIME type could not be determined.
Parameters
| Name |
Type |
Description |
$file |
string |
The file to analyze. |
Redefinition of
canAnalyze
bool canAnalyze(
string
$mime )
Returns if the handler can analyze a given MIME type.
This method returns if the driver is capable of analyzing a given MIME type. This method should be called before trying to actually analyze an image using the drivers self::analyzeImage() method.
Parameters
| Name |
Type |
Description |
$mime |
string |
The MIME type to check for. |
Redefinition of
isAvailable
bool isAvailable(
)
Checks wether the GD handler is available on the system.
Redefinition of
Last updated: Mon, 10 Nov 2008