Inherits Plugin.

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) | |
Definition at line 17 of file image.php.
| ppImage::_create_image | ( | $ | img, | |
| $ | fn, | |||
| $ | mime | |||
| ) |
| ppImage::_load_image | ( | $ | fn, | |
| $ | mime | |||
| ) |
| 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.
| string | $srcType MIME type of the source file | |
| string | $srcFile Source filename | |
| string | $dstFile Destination filename, can be the same as $srcFile |
| ppImage::convert | ( | $ | srcType, | |
| $ | srcFile, | |||
| $ | dstFile | |||
| ) |
| ppImage::flip | ( | $ | srcType, | |
| $ | srcType, | |||
| $ | dstFile, | |||
| $ | mode | |||
| ) |
Flip an image horizontally, vertically, or both.
| 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.
| 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
| 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().
1.6.1