Extension:Cropper
From MediaWiki.org
|
Cropper Release status: beta |
|
|---|---|
| Implementation | User interface |
| Description | This sample is used to cropper image and save it |
| Author(s) | coder |
| Version | 1.0 (2007-06-02) |
| Download | Code |
| Example | offsite demo |
Contents |
[edit] What can this extension do?
This extension embeds a image cropping widget into a wiki article. The widget displays an image and lets users select a portion of the image to save by moving a rectangle over the selected portion.
[edit] Usage
View a demo at on my wiki.
[edit] Installation
- Copy the code blow into
$IP/extensions/Cropper/default.php: - Add this line at the end of LocalSettings.php :
include('$IP/extensions/Cropper/default.php');
That's all :-)
[edit] Code
Editor's note: This code appears to be incomplete or broken (no wfCropper function defined, no hook function associated with the XML tag). Further information on this extension can be found at www.defusion.org.uk
<?php $wgExtensionFunctions[] = 'wfCropper'; $wgExtensionCredits['parserhook'][] = array( 'name' => 'Cropper image', 'description' => 'Cropper image', 'author' => 'Coder', 'url' => 'http://www.mediawiki.org/wiki/Extension:Cropper' ); function wfGoogleVideo() { global $wgParser; $wgParser->setHook('cropper', ''); }

