Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
ThumbnailPluginThumbnails for everyone | ||||||||
Line: 6 to 6 | ||||||||
On this page:
Syntax Rules | ||||||||
Changed: | ||||||||
< < |
%THUMBNAIL{ name="filename" variant="size" }% | |||||||
> > | %THUMBNAIL{ name="filename" variant="size" }% | |||||||
Given an image file name, returns the name of its thumbnail file of the given size. | ||||||||
Line: 26 to 25 | ||||||||
Used with the AttachLinkPlugin and ImgPlugin, it becomes easy to do things like display hyperlinks to images as thumbnails of that image. Examples below. But if that's what you want, use %THUMBVIEW instead. Note that the THUMBNAILPLUGIN_ENABLE preference controls thumbnail generation on upload; it does not control expansion of the %THUMBNAIL and %THUMBVIEW variables. | ||||||||
Changed: | ||||||||
< < |
%THUMBVIEW{ name="filename" variant="size" topic="topic" web="web" caption="string" cpos="position" align="string" border="" height="" width="" id="" class="" link="filename" ltopic="topic" lweb="web" fullpath="" }% | |||||||
> > | %THUMBVIEW{ name="filename" variant="size" topic="topic" web="web" caption="string" cpos="position" align="string" border="" height="" width="" id="" class="" link="filename" ltopic="topic" lweb="web" fullpath="" }% | |||||||
This is a lot simpler than it looks, as all the defaults are reasonable. | ||||||||
Line: 46 to 44 | ||||||||
| ||||||||
Added: | ||||||||
> > | attachutil | |||||||
Added: | ||||||||
> > | The ThumbnailPlugin distribution also includes attachutil, which is a utility script for manipulating attachments. Although it has special support for ThumbnailPlugin, it is generally useful, especially for refactoring topics. (Perhaps someone would like to package it as a separate Contrib.) | |||||||
Added: | ||||||||
> > | attachutil is located in the tools directory, and has the following commands:
| |||||||
This plugin requires the GD![]() ![]() | ||||||||
Line: 87 to 131 | ||||||||
%THUMBVIEW{"foo.jpg" caption="foo revealed"}%
is about as complex as is ordinarily needed. | ||||||||
Added: | ||||||||
> > | alias attach='/blah/twiki/tools/attachutil attach' alias list='/blah/twiki/tools/attachutil list' ln -s /blah/twiki/tools/attachutil hide attach TestTopic100 *.jpg *.png list TestTopic100 '*.png' ./hide TestTopic100 'Secret*.png' /blah/twiki/tools/attachutil thumb 100 200 400 TestTopic100 'My*.png' | |||||||
Plugin Settings | ||||||||
Changed: | ||||||||
< < | Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>% , i.e. %NEWPLUGIN_SHORTDESCRIPTION% | |||||||
> > | Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %NEWPLUGIN_SHORTDESCRIPTION% | |||||||
| ||||||||
Line: 109 to 160 | ||||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
| ||||||||
Line: 116 to 168 | ||||||||
Plugin Info
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 133 to 186 | ||||||||
Related Topics: TWikiPlugins, DeveloperDocumentationCategory, AdminDocumentationCategory, TWikiPreferences http://TWiki.org/cgi-bin/view/Plugins/AttachmentPlugin![]() ![]() ![]() | ||||||||
Added: | ||||||||
> > |
-- TWiki:Main.TimotheLitt![]() |