MediaWiki
REL1_21
|
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.
$image | File: 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 35 of file Jpeg.php.
References 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 69 of file Jpeg.php.
References $file, $params, $retval, ExifBitmapHandler\getRotation(), global, BitmapHandler\logErrorForExternalProcess(), wfDebug(), wfEscapeShellArg(), wfProfileIn(), wfProfileOut(), and wfShellExec().