MediaWiki
REL1_23
|
JPEG specific handler. More...
Public Member Functions | |
getMetadata ($image, $filename) | |
Get handler-specific metadata which will be saved in the img_metadata field. | |
rotate ($file, $params) |
JPEG specific handler.
Inherits most stuff from BitmapHandler, just here to do the metadata handler differently.
Metadata stuff common to Jpeg and built-in Tiff (not PagedTiffHandler) is in ExifBitmapHandler.
JpegHandler::getMetadata | ( | $ | image, |
$ | path | ||
) |
Get handler-specific metadata which will be saved in the img_metadata field.
File | $image | The image object, or false if there isn't one. Warning, FSFile::getPropsFromPath might pass an (object)array() instead (!) |
string | $path | The filename |
Reimplemented from MediaHandler.
Definition at line 34 of file Jpeg.php.
References $e, ExifBitmapHandler\BROKEN_FILE, BitmapMetadataHandler\Jpeg(), version, and wfDebug().
JpegHandler::rotate | ( | $ | file, |
$ | params | ||
) |
File | $file | |
array | $params | Rotate parameters. 'rotation' clockwise rotation in degrees, allowed are multiples of 90 |
Reimplemented from BitmapHandler.
Definition at line 70 of file Jpeg.php.
References $file, $params, $retval, ExifBitmapHandler\getRotation(), global, MediaHandler\logErrorForExternalProcess(), wfDebug(), wfEscapeShellArg(), wfProfileIn(), wfProfileOut(), and wfShellExecWithStderr().