Go to the documentation of this file.
38 if ( !parent::normaliseParams( $image,
$params ) ) {
42 # Obtain the source, pre-rotation dimensions
43 $srcWidth = $image->getWidth(
$params[
'page'] );
44 $srcHeight = $image->getHeight(
$params[
'page'] );
46 # Don't make an image bigger than the source
47 if (
$params[
'physicalWidth'] >= $srcWidth ) {
48 $params[
'physicalWidth'] = $srcWidth;
49 $params[
'physicalHeight'] = $srcHeight;
51 # Skip scaling limit checks if no scaling is required
52 # due to requested size being bigger than source.
53 if ( !$image->mustRender() ) {
58 # Check if the file is smaller than the maximum image area for thumbnailing
59 $checkImageAreaHookResult =
null;
61 'BitmapHandlerCheckImageArea',
65 if ( is_null( $checkImageAreaHookResult ) ) {
68 if ( $srcWidth * $srcHeight > $wgMaxImageArea
69 && !( $image->getMimeType() ==
'image/jpeg'
72 # Only ImageMagick can efficiently downsize jpg images without loading
73 # the entire file in memory
77 return $checkImageAreaHookResult;
96 if ( $rotation == 90 || $rotation == 270 ) {
97 # We'll resize before rotation, so swap the dimensions again
98 $width =
$params[
'physicalHeight'];
99 $height =
$params[
'physicalWidth'];
101 $width =
$params[
'physicalWidth'];
102 $height =
$params[
'physicalHeight'];
105 return array( $width, $height );
120 # Create a parameter array to pass to the scaler
121 $scalerParams =
array(
122 # The size to which the image
will be resized
123 'physicalWidth' =>
$params[
'physicalWidth'],
124 'physicalHeight' =>
$params[
'physicalHeight'],
125 'physicalDimensions' =>
"{$params['physicalWidth']}x{$params['physicalHeight']}",
127 'clientWidth' =>
$params[
'width'],
128 'clientHeight' =>
$params[
'height'],
130 'comment' => isset(
$params[
'descriptionUrl'] )
131 ?
"File source: {$params['descriptionUrl']}"
133 # Properties
of the original image
134 'srcWidth' => $image->getWidth(),
135 'srcHeight' => $image->getHeight(),
136 'mimeType' => $image->getMimeType(),
137 'dstPath' => $dstPath,
141 # Determine scaler type
144 wfDebug( __METHOD__ .
": creating {$scalerParams['physicalDimensions']} " .
145 "thumbnail at $dstPath using scaler $scaler\n" );
147 if ( !$image->mustRender() &&
148 $scalerParams[
'physicalWidth'] == $scalerParams[
'srcWidth']
149 && $scalerParams[
'physicalHeight'] == $scalerParams[
'srcHeight']
152 # normaliseParams (or the user) wants us to return the unscaled image
153 wfDebug( __METHOD__ .
": returning unscaled image\n" );
158 if ( $scaler ==
'client' ) {
159 # Client-side image scaling, use the source URL
160 # Using the destination URL in a TRANSFORM_LATER request would be incorrect
164 if (
$flags & self::TRANSFORM_LATER ) {
165 wfDebug( __METHOD__ .
": Transforming later per flags.\n" );
167 'width' => $scalerParams[
'clientWidth'],
168 'height' => $scalerParams[
'clientHeight']
174 # Try to make a target path for the thumbnail
176 wfDebug( __METHOD__ .
": Unable to create thumbnail destination " .
177 "directory, falling back to client scaling\n" );
182 # Transform functions and binaries need a FS source file
183 $scalerParams[
'srcPath'] = $image->getLocalRefPath();
184 if ( $scalerParams[
'srcPath'] ===
false ) {
186 sprintf(
'Thumbnail failed on %s: could not get local copy of "%s"',
190 $scalerParams[
'clientWidth'], $scalerParams[
'clientHeight'],
197 wfRunHooks(
'BitmapHandlerTransform',
array( $this, $image, &$scalerParams, &$mto ) );
198 if ( !is_null( $mto ) ) {
199 wfDebug( __METHOD__ .
": Hook to BitmapHandlerTransform created an mto\n" );
200 $scaler =
'hookaborted';
205 # Handled by the hook above
207 $err = $mto->isError() ? $mto :
false;
220 $err = $this->
transformGd( $image, $scalerParams );
224 # Remove the file if a zero-byte thumbnail was created, or if there was an error
227 # transform returned MediaTransforError
229 } elseif ( $removed ) {
230 # Thumbnail was zero-byte and had to be removed
232 $scalerParams[
'clientWidth'], $scalerParams[
'clientHeight'],
239 'width' => $scalerParams[
'clientWidth'],
240 'height' => $scalerParams[
'clientHeight']
256 global $wgUseImageResize, $wgUseImageMagick, $wgCustomConvertCommand;
258 if ( !$dstPath && $checkDstPath ) {
259 # No output path available, client side scaling only
261 } elseif ( !$wgUseImageResize ) {
263 } elseif ( $wgUseImageMagick ) {
265 } elseif ( $wgCustomConvertCommand ) {
267 } elseif ( function_exists(
'imagecreatetruecolor' ) ) {
269 } elseif ( class_exists(
'Imagick' ) ) {
290 'width' => $scalerParams[
'clientWidth'],
291 'height' => $scalerParams[
'clientHeight']
307 global $wgSharpenReductionThreshold, $wgSharpenParameter, $wgMaxAnimatedGifArea,
308 $wgImageMagickTempDir, $wgImageMagickConvertCommand;
313 $animation_pre =
array();
314 $animation_post =
array();
315 $decoderHint =
array();
316 if (
$params[
'mimeType'] ==
'image/jpeg' ) {
317 $quality =
array(
'-quality',
'80' );
318 # Sharpening, see bug 6193
321 < $wgSharpenReductionThreshold
323 $sharpen =
array(
'-sharpen', $wgSharpenParameter );
327 $decoderHint =
array(
'-define',
"jpeg:size={$params['physicalDimensions']}" );
329 } elseif (
$params[
'mimeType'] ==
'image/png' ) {
330 $quality =
array(
'-quality',
'95' );
332 } elseif (
$params[
'mimeType'] ==
'image/gif' ) {
333 if ( $this->
getImageArea( $image ) > $wgMaxAnimatedGifArea ) {
339 $animation_pre =
array(
'-coalesce' );
343 $animation_post =
array(
'-fuzz',
'5%',
'-layers',
'optimizeTransparency' );
346 } elseif (
$params[
'mimeType'] ==
'image/x-xcf' ) {
347 $animation_post =
array(
'-layers',
'merge' );
351 $env =
array(
'OMP_NUM_THREADS' => 1 );
352 if ( strval( $wgImageMagickTempDir ) !==
'' ) {
353 $env[
'MAGICK_TMPDIR'] = $wgImageMagickTempDir;
359 $cmd = call_user_func_array(
'wfEscapeShellArg', array_merge(
360 array( $wgImageMagickConvertCommand ),
364 array(
'-background',
'white' ),
371 array(
'-thumbnail',
"{$width}x{$height}!" ),
376 array(
'-depth', 8 ),
378 array(
'-rotate',
"-$rotation" ),
382 wfDebug( __METHOD__ .
": running ImageMagick: $cmd\n" );
394 return false; # No error
406 global $wgSharpenReductionThreshold, $wgSharpenParameter, $wgMaxAnimatedGifArea;
410 $im->readImage(
$params[
'srcPath'] );
412 if (
$params[
'mimeType'] ==
'image/jpeg' ) {
416 < $wgSharpenReductionThreshold
419 list( $radius, $sigma ) = explode(
'x', $wgSharpenParameter );
420 $im->sharpenImage( $radius, $sigma );
422 $im->setCompressionQuality( 80 );
423 } elseif (
$params[
'mimeType'] ==
'image/png' ) {
424 $im->setCompressionQuality( 95 );
425 } elseif (
$params[
'mimeType'] ==
'image/gif' ) {
426 if ( $this->
getImageArea( $image ) > $wgMaxAnimatedGifArea ) {
429 $im->setImageScene( 0 );
432 $im = $im->coalesceImages();
439 $im->setImageBackgroundColor(
new ImagickPixel(
'white' ) );
442 foreach ( $im
as $i => $frame ) {
443 if ( !$frame->thumbnailImage( $width, $height,
false ) ) {
447 $im->setImageDepth( 8 );
450 if ( !$im->rotateImage(
new ImagickPixel(
'white' ), 360 - $rotation ) ) {
456 wfDebug( __METHOD__ .
": Writing animated thumbnail\n" );
464 "Unable to write thumbnail to {$params['dstPath']}" );
466 }
catch ( ImagickException
$e ) {
482 # Use a custom convert command
483 global $wgCustomConvertCommand;
485 # Variables: %s %d %w %h
488 $cmd = $wgCustomConvertCommand;
489 $cmd = str_replace(
'%s', $src, str_replace(
'%d', $dst, $cmd ) ); # Filenames
492 wfDebug( __METHOD__ .
": Running custom convert command $cmd\n" );
504 return false; # No error
516 $params[
'clientHeight'], $errMsg );
528 # Use PHP's builtin GD library functions.
530 # First find out what kind of file this is, and select the correct
531 # input routine for this.
534 'image/gif' =>
array(
'imagecreatefromgif',
'palette',
'imagegif' ),
535 'image/jpeg' =>
array(
'imagecreatefromjpeg',
'truecolor',
536 array( __CLASS__,
'imageJpegWrapper' ) ),
537 'image/png' =>
array(
'imagecreatefrompng',
'bits',
'imagepng' ),
538 'image/vnd.wap.wbmp' =>
array(
'imagecreatefromwbmp',
'palette',
'imagewbmp' ),
539 'image/xbm' =>
array(
'imagecreatefromxbm',
'palette',
'imagexbm' ),
541 if ( !isset( $typemap[
$params[
'mimeType']] ) ) {
542 $err =
'Image type not supported';
544 $errMsg =
wfMessage(
'thumbnail_image-type' )->text();
548 list( $loader, $colorStyle, $saveType ) = $typemap[
$params[
'mimeType']];
550 if ( !function_exists( $loader ) ) {
551 $err =
"Incomplete GD library configuration: missing function $loader";
553 $errMsg =
wfMessage(
'thumbnail_gd-library', $loader )->text();
558 if ( !file_exists(
$params[
'srcPath'] ) ) {
559 $err =
"File seems to be missing: {$params['srcPath']}";
561 $errMsg =
wfMessage(
'thumbnail_image-missing',
$params[
'srcPath'] )->text();
566 $src_image = call_user_func( $loader,
$params[
'srcPath'] );
568 $rotation = function_exists(
'imagerotate' ) ? $this->
getRotation( $image ) : 0;
570 $dst_image = imagecreatetruecolor( $width, $height );
574 $background = imagecolorallocate( $dst_image, 0, 0, 0 );
575 imagecolortransparent( $dst_image, $background );
576 imagealphablending( $dst_image,
false );
578 if ( $colorStyle ==
'palette' ) {
581 imagecopyresized( $dst_image, $src_image,
584 imagesx( $src_image ), imagesy( $src_image ) );
586 imagecopyresampled( $dst_image, $src_image,
589 imagesx( $src_image ), imagesy( $src_image ) );
592 if ( $rotation % 360 != 0 && $rotation % 90 == 0 ) {
593 $rot_image = imagerotate( $dst_image, $rotation, 0 );
594 imagedestroy( $dst_image );
595 $dst_image = $rot_image;
598 imagesavealpha( $dst_image,
true );
600 call_user_func( $saveType, $dst_image,
$params[
'dstPath'] );
601 imagedestroy( $dst_image );
602 imagedestroy( $src_image );
604 return false; # No error
615 $s = str_replace(
'\\',
'\\\\',
$s );
617 $s = str_replace(
'%',
'%%',
$s );
619 if ( strlen(
$s ) > 0 && (
$s[0] ===
'-' ||
$s[0] ===
'@' ) ) {
644 # Die on initial metacharacters (caller should prepend path)
645 $firstChar = substr(
$path, 0, 1 );
646 if ( $firstChar ===
'~' || $firstChar ===
'@' ) {
647 throw new MWException( __METHOD__ .
': cannot escape this path name' );
651 $path = preg_replace(
'/[*?\[\]{}]/',
'\\\\\0',
$path );
679 # Die on format specifiers (other than drive letters). The regex is
680 # meant to match all the formats you get from "convert -list format"
681 if ( preg_match(
'/^([a-zA-Z0-9-]+):/',
$path, $m ) ) {
686 throw new MWException( __METHOD__ .
': unexpected colon character in path name' );
690 # If there are square brackets, add a do-nothing scene specification
691 # to force a literal interpretation
692 if ( $scene ===
false ) {
693 if ( strpos(
$path,
'[' ) !==
false ) {
714 global $wgImageMagickConvertCommand;
716 wfDebug( __METHOD__ .
": Running convert -version\n" );
719 $x = preg_match(
'/Version: ImageMagick ([0-9]*\.[0-9]*\.[0-9]*)/', $return,
$matches );
721 wfDebug( __METHOD__ .
": ImageMagick version check failed\n" );
734 imageinterlace( $dst_image );
735 imagejpeg( $dst_image, $thumbPath, 95 );
747 # ImageMagick supports autorotation
750 # Imagick::rotateImage
753 # GD's imagerotate function is used to rotate images, but not
754 # all precompiled PHP versions have that function
755 return function_exists(
'imagerotate' );
757 # Other scalers don't support rotation
767 global $wgEnableAutoRotation;
769 if ( $wgEnableAutoRotation ===
null ) {
774 return $wgEnableAutoRotation;
785 global $wgImageMagickConvertCommand;
797 wfDebug( __METHOD__ .
": running ImageMagick: $cmd\n" );
811 $im->readImage(
$params[
'srcPath'] );
812 if ( !$im->rotateImage(
new ImagickPixel(
'white' ), 360 - $rotation ) ) {
814 "Error rotating $rotation degrees" );
819 "Unable to write image to {$params['dstPath']}" );
825 "$scaler rotation not implemented" );
static autoRotateEnabled()
doTransform( $image, $dstPath, $dstUrl, $params, $flags=0)
Media transform output for images.
The index of the header message $result[1]=The index of the body text message $result[2 through n]=Parameters passed to body text message. Please note the header message cannot receive/use parameters. 'ImportHandleLogItemXMLTag':When parsing a XML tag in a log item. $reader:XMLReader object $logInfo:Array of information Return false to stop further processing of the tag 'ImportHandlePageXMLTag':When parsing a XML tag in a page. $reader:XMLReader object $pageInfo:Array of information Return false to stop further processing of the tag 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision. $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information Return false to stop further processing of the tag 'ImportHandleToplevelXMLTag':When parsing a top level XML tag. $reader:XMLReader object Return false to stop further processing of the tag 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload. $reader:XMLReader object $revisionInfo:Array of information Return false to stop further processing of the tag 'InfoAction':When building information to display on the action=info page. $context:IContextSource object & $pageInfo:Array of information 'InitializeArticleMaybeRedirect':MediaWiki check to see if title is a redirect. $title:Title object for the current page $request:WebRequest $ignoreRedirect:boolean to skip redirect check $target:Title/string of redirect target $article:Article object 'InterwikiLoadPrefix':When resolving if a given prefix is an interwiki or not. Return true without providing an interwiki to continue interwiki search. $prefix:interwiki prefix we are looking for. & $iwData:output array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid. 'InternalParseBeforeSanitize':during Parser 's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/onlyinclude and other processings. Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InternalParseBeforeLinks':during Parser 's internalParse method before links but after nowiki/noinclude/includeonly/onlyinclude and other processings. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InvalidateEmailComplete':Called after a user 's email has been invalidated successfully. $user:user(object) whose email is being invalidated 'IRCLineURL':When constructing the URL to use in an IRC notification. Callee may modify $url and $query, URL will be constructed as $url . $query & $url:URL to index.php & $query:Query string $rc:RecentChange object that triggered url generation 'IsFileCacheable':Override the result of Article::isFileCacheable()(if true) $article:article(object) being checked 'IsTrustedProxy':Override the result of wfIsTrustedProxy() $ip:IP being check $result:Change this value to override the result of wfIsTrustedProxy() 'IsUploadAllowedFromUrl':Override the result of UploadFromUrl::isAllowedUrl() $url:URL used to upload from & $allowed:Boolean indicating if uploading is allowed for given URL 'isValidEmailAddr':Override the result of User::isValidEmailAddr(), for instance to return false if the domain name doesn 't match your organization. $addr:The e-mail address entered by the user & $result:Set this and return false to override the internal checks 'isValidPassword':Override the result of User::isValidPassword() $password:The password entered by the user & $result:Set this and return false to override the internal checks $user:User the password is being validated for 'Language::getMessagesFileName':$code:The language code or the language we 're looking for a messages file for & $file:The messages file path, you can override this to change the location. 'LanguageGetNamespaces':Provide custom ordering for namespaces or remove namespaces. Do not use this hook to add namespaces. Use CanonicalNamespaces for that. & $namespaces:Array of namespaces indexed by their numbers 'LanguageGetMagic':DEPRECATED, use $magicWords in a file listed in $wgExtensionMessagesFiles instead. Use this to define synonyms of magic words depending of the language $magicExtensions:associative array of magic words synonyms $lang:language code(string) 'LanguageGetSpecialPageAliases':DEPRECATED, use $specialPageAliases in a file listed in $wgExtensionMessagesFiles instead. Use to define aliases of special pages names depending of the language $specialPageAliases:associative array of magic words synonyms $lang:language code(string) 'LanguageGetTranslatedLanguageNames':Provide translated language names. & $names:array of language code=> language name $code language of the preferred translations 'LanguageLinks':Manipulate a page 's language links. This is called in various places to allow extensions to define the effective language links for a page. $title:The page 's Title. & $links:Associative array mapping language codes to prefixed links of the form "language:title". & $linkFlags:Associative array mapping prefixed links to arrays of flags. Currently unused, but planned to provide support for marking individual language links in the UI, e.g. for featured articles. 'LinkBegin':Used when generating internal and interwiki links in Linker::link(), before processing starts. Return false to skip default processing and return $ret. See documentation for Linker::link() for details on the expected meanings of parameters. $skin:the Skin object $target:the Title that the link is pointing to & $html:the contents that the< a > tag should have(raw HTML) $result
wfShellExec( $cmd, &$retval=null, $environ=array(), $limits=array(), $options=array())
Execute a shell command, with time and memory limits mirrored from the PHP configuration if supported...
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
transformImageMagickExt( $image, $params)
Transform an image using the Imagick PHP extension.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
escapeMagickPath( $path, $scene=false)
Armour a string against ImageMagick's GetPathComponent().
wfMkdirParents( $dir, $mode=null, $caller=null)
Make directory, and make all parent directories if they don't exist.
static imageJpegWrapper( $dst_image, $thumbPath)
globals will be eliminated from MediaWiki replaced by an application object which would be passed to constructors Whether that would be an convenient solution remains to be but certainly PHP makes such object oriented programming models easier than they were in previous versions For the time being MediaWiki programmers will have to work in an environment with some global context At the time of globals were initialised on startup by MediaWiki of these were configuration which are documented in DefaultSettings php There is no comprehensive documentation for the remaining however some of the most important ones are listed below They are typically initialised either in index php or in Setup php For a description of the see design txt $wgTitle Title object created from the request URL $wgOut OutputPage object for HTTP response $wgUser User object for the user associated with the current request $wgLang Language object selected by user preferences $wgContLang Language object associated with the wiki being viewed $wgParser Parser object Parser extensions register their hooks here $wgRequest WebRequest to get request data $wgMemc
escapeMagickProperty( $s)
Escape a string for ImageMagick's property input (e.g.
static canRotate()
Returns whether the current scaler supports rotation (im and gd do)
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
wfDebugLog( $logGroup, $text, $dest='all')
Send a line to a supplementary debug log file, if configured, or main debug log if not.
wfProfileIn( $functionname)
Begin profiling of a function.
wfHostname()
Fetch server name for use in error reporting etc.
wfShellExecWithStderr( $cmd, &$retval=null, $environ=array(), $limits=array())
Execute a shell command, returning both stdout and stderr.
it s the revision text itself In either if gzip is the revision text is gzipped $flags
Class to extract and validate Exif data from jpeg (and possibly tiff) files.
getClientScalingThumbnailImage( $image, $scalerParams)
Get a ThumbnailImage that respresents an image that will be scaled client side.
transformCustom( $image, $params)
Transform an image using a custom command.
extractPreRotationDimensions( $params, $rotation)
Extracts the width/height if the image will be scaled before rotating.
escapeMagickOutput( $path, $scene=false)
Escape a string for ImageMagick's output filename.
Generic handler for bitmap images.
wfProfileOut( $functionname='missing')
Stop profiling of a function.
Media handler abstract base class for images.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing after in associative array form externallinks including delete and has completed for all link tables default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "<
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
mustRender( $file)
Rerurns whether the file needs to be rendered.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
</td >< td > &</td >< td > t want your writing to be edited mercilessly and redistributed at will
getMediaTransformError( $params, $errMsg)
Get a MediaTransformError with error 'thumbnail_error'.
wfDebug( $text, $dest='all')
Sends a line to the debug log if enabled or, optionally, to a comment in output.
if(!defined( 'MEDIAWIKI')) if(!isset( $wgVersion)) $matches
wfIsWindows()
Check if the operating system is Windows.
wfEscapeShellArg()
Windows-compatible version of escapeshellarg() Windows doesn't recognise single-quotes in the shell,...
transformGd( $image, $params)
Transform an image using the built in GD library.
static getScalerType( $dstPath, $checkDstPath=true)
Returns which scaler type should be used.
if(PHP_SAPI !='cli') $file
getMagickVersion()
Retrieve the version of the installed ImageMagick You can use PHPs version_compare() to use this valu...
normaliseParams( $image, &$params)
transformImageMagick( $image, $params)
Transform an image using ImageMagick.
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going on
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
getImageArea( $image)
Function that returns the number of pixels to be thumbnailed.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account incomplete not yet checked for validity & $retval
escapeMagickInput( $path, $scene=false)
Escape a string for ImageMagick's input filenames.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values my talk page