r5 - 16 Feb 2006 - 21:40:26 - PeterThoenyYou are here: TWiki >  Plugins Web > MaxImageSizePlugin
Tags:
images 2 Add my vote for this tag, , create new tag

Max Image Size Plugin

This is an plugin to restrict the max size of an image. It gets called before images are saved to disk and changes the size of them according to the RESIZE_GEOMETRY string.

Syntax Rules

MaxImageSizePlugin Global Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, for example, %EMPTYPLUGIN_SHORTDESCRIPTION%

  • One line description, shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Changes the geometry of attached images

  • Resize geometry
    • Set RESIZE_GEOMETRY = "640x480>"

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 1

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip MaxImageSizePlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/MaxImageSizePlugin.txt Plugin topic
    data/TWiki/MaxImageSizePlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/MaxImageSizePlugin.pm Plugin Perl module
  • Test if the plugin is correctly installed:
    • (describe tests here)

Plugin Info

Plugin Author: TWiki:Main.MartinCleaver
Plugin Version: 11 Apr 2004 (V1.000)
TWiki Dependency: $TWiki::Plugins::VERSION 1.024
CPAN Dependencies: http://www.imagemagick.org/www/perl.html
Other Dependencies: Image Magick
Perl Version: 5.005
License: GPL (GNU General Public License)
Benchmarks: GoodStyle nn%, FormattedSearch nn%, MaxImageSizePlugin nn%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/MaxImageSizePlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/MaxImageSizePluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/MaxImageSizePluginAppraisal

Related Topics: TWikiPreferences, TWikiPlugins, DefaultPlugin

-- TWiki:Main.MartinCleaver - 11 Apr 2004

Topic attachments
I Attachment Action Size Date Who Comment
zipzip MaxImageSizePlugin.zip manage 3.1 K 11 Apr 2004 - 14:46 MartinCleaver  
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo