eZImageGD Class Reference
[Image conversion and scaling]

Image conversion delegate using ImageGD PHP extension. More...

List of all members.


Public Methods

 eZImageGD ($from_type=EZ_IMAGE_KEEP_SUFFIX,$to_type=EZ_IMAGE_REPLACE_SUFFIX)
convertFileName ($from,$type,$use_dir=true)
 convert (&$from,&$to,&$to_dir,&$to_file,&$filters,$scale=false)
 scale (&$from,&$to,&$to_file,&$filters,$scale)

Public Attributes

 InputMIMETypes
 Array of allowed input types mapped to the corresponding function.

 OutputMIMETypes
 Array of allowed output types mapped to the corresponding function.

 FromType
 The filename operation to run on the source file.

 ToType
 The filename operation to run on the destination file.


Detailed Description

Image conversion delegate using ImageGD PHP extension.

This class uses the internal PHP functions for image handling for doing conversions. See http://www.php.net/manual/en/ref.image.php for more information.

Definition at line ezimagegd.php.


Constructor & Destructor Documentation

eZImageGD::eZImageGD   from_type = EZ_IMAGE_KEEP_SUFFIX,
  to_type = EZ_IMAGE_REPLACE_SUFFIX
 

Sets up the conversion rules, maps a mimetype to a specific image function. GIF and WBMP conversion is only available if it is compiled in.

Definition at line ezimagegd.php.

References ToType.


Member Function Documentation

eZImageGD::convert &$    from,
&$    to,
&$    to_dir,
&$    to_file,
&$    filters,
  scale = false
 

Converts the image and scales it if needed. Returns true if the image could be converted.

Definition at line ezimagegd.php.

References eZDebug::writeWarning().

Referenced by scale().

& eZImageGD::convertFileName   from,
  type,
  use_dir = true
 

Converts the filename $from according to $type. See class documentation or different types you can use.

Definition at line ezimagegd.php.

Referenced by convert().

eZImageGD::scale &$    from,
&$    to,
&$    to_file,
&$    filters,
  scale
 

Calls convert() with the $filters and $scale param.

Definition at line ezimagegd.php.

References scale().

Referenced by scale().


The documentation for this class was generated from the following file:  

Exponential