| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Generic handler for bitmap images. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
| File Size: | 490 lines (17 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
BitmapHandler:: (9 methods):
getScalerType()
transformImageMagick()
transformImageMagickExt()
transformCustom()
transformGd()
imageJpegWrapper()
canRotate()
autoRotateEnabled()
rotate()
Class: BitmapHandler - X-Ref
Generic handler for bitmap images| getScalerType( $dstPath, $checkDstPath = true ) X-Ref |
| Returns which scaler type should be used. Creates parent directories for $dstPath and returns 'client' on error param: string $dstPath param: bool $checkDstPath return: string|Callable One of client, im, custom, gd, imext or an array( object, method ) |
| transformImageMagick( $image, $params ) X-Ref |
| Transform an image using ImageMagick param: File $image File associated with this thumbnail param: array $params Array with scaler params return: MediaTransformError Error object if error occurred, false (=no error) otherwise |
| transformImageMagickExt( $image, $params ) X-Ref |
| Transform an image using the Imagick PHP extension param: File $image File associated with this thumbnail param: array $params Array with scaler params return: MediaTransformError Error object if error occurred, false (=no error) otherwise |
| transformCustom( $image, $params ) X-Ref |
| Transform an image using a custom command param: File $image File associated with this thumbnail param: array $params Array with scaler params return: MediaTransformError Error object if error occurred, false (=no error) otherwise |
| transformGd( $image, $params ) X-Ref |
| Transform an image using the built in GD library param: File $image File associated with this thumbnail param: array $params Array with scaler params return: MediaTransformError Error object if error occurred, false (=no error) otherwise |
| imageJpegWrapper( $dst_image, $thumbPath, $quality = 95 ) X-Ref |
| Callback for transformGd when transforming jpeg images. |
| canRotate() X-Ref |
| Returns whether the current scaler supports rotation (im and gd do) return: bool |
| autoRotateEnabled() X-Ref |
return: bool Whether auto rotation is enabled |
| rotate( $file, $params ) X-Ref |
param: File $file param: array $params Rotate parameters. return: bool |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |