ppImage Class Reference

Inherits Plugin.

Collaboration diagram for ppImage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ppImage ()
 convert ($srcType, $srcFile, $dstFile)
 rotate ($srcType, $srcFile, $dstFile, $angle)
 auto_rotate ($srcType, $srcFile, $dstFile, $angle)
 resize ($srcType, $srcFile, $dstFile, $max_width=0, $max_height=0, $maintain_aspect=true)
 flip ($srcType, $srcType, $dstFile, $mode)
 _load_image ($fn, $mime)
 _create_image ($img, $fn, $mime)

Detailed Description

Definition at line 17 of file image.php.


Member Function Documentation

ppImage::_create_image ( img,
fn,
mime 
)

Definition at line 250 of file image.php.

Referenced by flip(), resize(), and rotate().

ppImage::_load_image ( fn,
mime 
)

Definition at line 239 of file image.php.

Referenced by flip(), resize(), and rotate().

ppImage::auto_rotate ( srcType,
srcFile,
dstFile,
angle 
)

Automatically rotate an image based on EXIF data. If the IFD0[Orientation] header is available, this function will use it to rotate the image to the correct orientation.

Parameters:
string $srcType MIME type of the source file
string $srcFile Source filename
string $dstFile Destination filename, can be the same as $srcFile

Definition at line 67 of file image.php.

References flip(), and rotate().

ppImage::convert ( srcType,
srcFile,
dstFile 
)

Convert an image from GIF/PNG/JPEG to JPEG, preserving dimensions

Definition at line 27 of file image.php.

References resize().

ppImage::flip ( srcType,
srcType,
dstFile,
mode 
)

Flip an image horizontally, vertically, or both.

Parameters:
string $srcType MIME type of the source file
string $srcFile Source filename
string $dstFile Destination filename, can be the same as $srcFile
int $mode Either IMAGE_FLIP_HORIZONTAL, IMAGE_FLIP_VERTICAL, or IMAGE_FLIP_BOTH

Definition at line 194 of file image.php.

References $mode, _create_image(), and _load_image().

Referenced by auto_rotate().

ppImage::ppImage (  ) 

Definition at line 19 of file image.php.

References Plugin::Plugin().

ppImage::resize ( srcType,
srcFile,
dstFile,
max_width = 0,
max_height = 0,
maintain_aspect = true 
)

Resize an image, optionally maintaining aspect ratio. Also converts to JPEG format.

Parameters:
string $srcType MIME type of the source file
string $srcFile Source filename
string $dstFile Destination filename, can be the same as $srcFile
int $max_width
int $max_height
bool $maintain_aspect

Definition at line 139 of file image.php.

References _create_image(), and _load_image().

Referenced by convert().

ppImage::rotate ( srcType,
srcFile,
dstFile,
angle 
)

Rotate an image

Parameters:
string $srcType MIME type of the source file
string $srcFile Source filename
string $dstFile Destination filename, can be the same as $srcFile
float $angle Angle (degrees) to rotate, can be negative

Definition at line 42 of file image.php.

References _create_image(), and _load_image().

Referenced by auto_rotate().


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

Generated on Wed Jan 13 09:21:04 2010 for Pronto Framework by  doxygen 1.6.1