MediaWiki  REL1_23
JpegHandler Class Reference

JPEG specific handler. More...

Inheritance diagram for JpegHandler:
Collaboration diagram for JpegHandler:

List of all members.

Public Member Functions

 getMetadata ($image, $filename)
 Get handler-specific metadata which will be saved in the img_metadata field.
 rotate ($file, $params)

Detailed Description

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.

Definition at line 33 of file Jpeg.php.


Member Function Documentation

JpegHandler::getMetadata ( image,
path 
)

Get handler-specific metadata which will be saved in the img_metadata field.

Parameters:
File$imageThe image object, or false if there isn't one. Warning, FSFile::getPropsFromPath might pass an (object)array() instead (!)
string$pathThe filename
Returns:
string

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 
)
Parameters:
File$file
array$paramsRotate parameters. 'rotation' clockwise rotation in degrees, allowed are multiples of 90
Since:
1.21
Returns:
bool

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().


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