<<O>>  Cambios es la página ImageGalleryPlugin (r1.6 - 16 Oct 2005 - RicardoDeLosSantos)

META TOPICPARENT TWikiPreferences

Plugin para crear una Galería de Imágenes

  • Para crear una galería de imágenes en una página TWiki donde hayamos adjuntado varias imágenes basta escribir
    %IMAGEGALLERY% o si se prefiere %ALBUM%
  • Es posible especificar parámetros dentro de una llaves a continuación de la palabra IMAGEGALLERY (usando parámetros no funciona la palabra ALBUM), para personalizar la vista de la galería, como en los siguientes ejemplos
Changed:
<
<
%ALBUM%=
>
>
%ALBUM%

Changed:
<
<
%IMAGEGALLERY%
>
>
%IMAGEGALLERY%

Changed:
<
<
%IMAGEGALLERY{ web="%WEB%" topic="%TOPIC%" size="small" }%
>
>
%IMAGEGALLERY{ web="%WEB%" topic="%TOPIC%" size="small" }%

 <<O>>  Cambios es la página ImageGalleryPlugin (r1.5 - 15 Oct 2005 - MiguelAngelRosado)

META TOPICPARENT TWikiPreferences

Plugin para crear una Galería de Imágenes

  • Para crear una galería de imágenes en una página TWiki donde hayamos adjuntado varias imágenes basta escribir
Changed:
<
<
%MAGEGALLERY% o si se prefiere %ALBUM%
>
>
%IMAGEGALLERY% o si se prefiere %ALBUM%

  • Es posible especificar parámetros dentro de una llaves a continuación de la palabra IMAGEGALLERY (usando parámetros no funciona la palabra ALBUM), para personalizar la vista de la galería, como en los siguientes ejemplos

%ALBUM%=

 <<O>>  Cambios es la página ImageGalleryPlugin (r1.4 - 05 Jan 2005 - RicardoDeLosSantos)

META TOPICPARENT TWikiPreferences
Changed:
<
<

TWiki Image Gallery Plugin

>
>

Plugin para crear una Galería de Imágenes

  • Para crear una galería de imágenes en una página TWiki donde hayamos adjuntado varias imágenes basta escribir
    %MAGEGALLERY% o si se prefiere %ALBUM%
  • Es posible especificar parámetros dentro de una llaves a continuación de la palabra IMAGEGALLERY (usando parámetros no funciona la palabra ALBUM), para personalizar la vista de la galería, como en los siguientes ejemplos

Changed:
<
<
Pages containing %IMAGEGALLERY% variables are expanded at view time, providing a thumbnailed image gallery for those images attached to a wiki page. Thumbnails are created automatically and subsequently cached. Display is simple ( trivial--probably not really good enough, although each picture is surrounded by a span with a class of imgGallery )

  • size > =small, medium, large, xlarge, huge
  • web => web; default is %WEB%
  • topic => topic; default is %TOPIC%
  • format => how to format each image (see Variables), default format is:
        <span class="imgGallery"><a href="$imageurl"><img src="$thumburl" title="$sizeK: $comment"/></a></span>$n
  • options => additionaly oprins for the CONVERT program, default is "" (empty)
  • columns => number of columns default is "0" which means infinity
    if set to some number, the following sequence is generated:
    $rowstart$format$rowinside$format ... $format$rowend
  • rowstart => formatted text at start of a row if columns > 0, default is "" (empty)
  • rowinside => formatted text inside of a row if columns > 0, default is "" (empty)
  • rowend => formatted text at end of a row if columns > 0, default is "" (empty)
  • rowinsideempty => formatted text inside of a row if columns > 0 and no more images, default is "" (empty)
  • rowendempty => formatted text at end of a row if columns > 0 and no more images, default is "" (empty)

Variables

Variables are recognized and replaced in the format strings: format, rowstart, rowinside, rowend, rowinsideempty, rowendempty
  • $web the %WEB% the image is from
  • $topic the %TOPIC% the image is from
  • $width width in pixels of the original image
  • $height height in pixels of the original image
  • $version version number of the ioriginal mage
  • $name complete name of the original image (no path)
  • $sizeK size of the original image in kilobytes (example: 8k)
  • $size size of the original image in bytes (example: 8234)
  • $comment the comment of the image attachment
  • $wikiusername the WikiName of the user checked in the image
  • $username the user name of the user checked in the image
  • $thumburl the complete URL of the thumbnail image
  • $imageurl the complete URL of the original image
  • $date{...} the check in date of the original image, can be formatted like %GMTIME% (see TWikiVariables). The default format is like (if no {} spezified) "31 Dec 2002 - 19:30"
  • $n insert a line break
  • $imgnr number of the image (starts at 1)

Examples

>
>
%ALBUM%=

%IMAGEGALLERY%

Line: 49 to 14

%IMAGEGALLERY{ web="%WEB%" topic="%TOPIC%" size="small" }%
Deleted:
<
<
%IMAGEGALLERY{ web="Saneasylum" topic="ArtworkGallery" size="x50" }%

Generates a table with 4 rows, images are centerd and with a tooltip. Below each image is a simple description line with a image number.

%IMAGEGALLERY{columns="4" rowstart="|  " rowinside="  |  " rowend="  |$n" rowinsideempty="  |" rowendempty=" |$n" 
  format="<span class='imgGallery'><a href='$imageurl'><img src='$thumburl' title='$tooltip'/></a></span><br/>$imgnr: $comment"}%


1:

2:
   

Format the Images as a list, images have tool tips.

%IMAGEGALLERY{format="   * <span class='imgGallery'><a href='$imageurl'><img src='$thumburl' title='$tooltip'/></a></span> $wikiusername $date$n"}%
  • WillNorris? 01 Aug 2003 - 23:35
  • RicardoDeLosSantos? 05 Jan 2005 - 19:12

Format the Images as a list, images have tool tips and customized date.

%IMAGEGALLERY{format="   * <span class='imgGallery'><a href='$imageurl'><img src='$thumburl' title='$tooltip'/></a></span> $wikiusername $date{$year$mo$day-$hour:$min:$sec}$n"}%
  • WillNorris? 20030801-23:35:05
  • RicardoDeLosSantos? 20050105-19:12:33

ImageGalleryPlugin Settings


Changed:
<
<
Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %IMAGEGALLERYPLUGIN_SHORTDESCRIPTION%
>
>
  • Los parámetros más comunes son
    • size > tamaño =small, medium, large, xlarge, huge
    • web => zona; por defecto es la zona donde estemos usando el plugin
    • topic => tema; por defecto es el tema donde estemos usando el plugin*
    • columns => número de columnas

Changed:
<
<
  • Names and sizes for thumbnails (feel free to add additional entries or to modify these defaults)
>
>

Configuración

  • Nombres y tamaños para la vista de galería

    • Set TINY = 25x25
    • Set SMALL = 50x50
    • Set MEDIUM = 95x95
    • Set LARGE = 150x150
    • Set XLARGE = 250x250
Changed:
<
<
  • Name and location of program used to generate thumbnails
>
>
  • Nombre y localización de los programas usados (en el servidor) para generar las galerías

    • Set IMAGE_MAGICK = /usr
    • Set CONVERT = /usr/bin/convert
    • Set IDENTIFY = /usr/bin/identify
Changed:
<
<
  • Additionaly program options for the CONVERT program
>
>
  • Opciones extras para el programa CONVERT

    • Set CONVERT_OPTIONS = ""
Changed:
<
<
  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Displays image gallery with auto-generated thumbnails for attachments.
>
>
  • Descripción del plugin:
    • Set SHORTDESCRIPTION = Muestra galerías de imágenes generadas a partir de imágenes adjuntas a una página.

Changed:
<
<
  • Debug plugin: (See output in data/debug.txt)
>
>
  • Depurador: (Salida en data/debug.txt)

    • Set DEBUG = 0
Changed:
<
<

Plugin Installation Instructions

  • Download the ZIP file from the ImageGalleryPlugin home
  • Unzip = ImageGalleryPlugin.zip= in your twiki installation directory. Content:
    File: Description:
    data/TWiki/ImageGalleryPlugin.txt Plugin topic
    data/TWiki/ImageGalleryPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/ImageGalleryPlugin.pm Plugin Perl module
    pub/TWiki/ImageGalleryPlugin/twikiwide.gif test image for this page

Plugin Info

>
>

Información del Plugin


Plugin Author: TWiki:Main/WillNorris
Plugin Version: 31 Jan 2004 (V1.1)
Line: 128 to 61

Related Topics: TWikiPreferences, TWikiPlugins

-- WillNorris? - 1 Aug 2003

Added:
>
>

META FILEATTACHMENT twikiwide.gif attr="" comment="" date="1059773705" path="twikiwide.gif" size="5850" user="WillNorris" version="1.1"
Added:
>
>
META FILEATTACHMENT feliz4.gif attr="" comment="" date="1104948753" path="feliz4.gif" size="38835" user="RicardoDeLosSantos" version="1.1"
META FILEATTACHMENT logocepca3.gif attr="" comment="" date="1104948840" path="logocepca3.gif" size="4762" user="RicardoDeLosSantos" version="1.1"
 <<O>>  Cambios es la página ImageGalleryPlugin (r1.3 - 31 Jan 2004 - RobertSuna?)

META TOPICPARENT TWikiPreferences

TWiki Image Gallery Plugin

Line: 7 to 7

  • size > =small, medium, large, xlarge, huge
  • web => web; default is %WEB%
  • topic => topic; default is %TOPIC%
Added:
>
>
  • format => how to format each image (see Variables), default format is:
        <span class="imgGallery"><a href="$imageurl"><img src="$thumburl" title="$sizeK: $comment"/></a></span>$n
  • options => additionaly oprins for the CONVERT program, default is "" (empty)
  • columns => number of columns default is "0" which means infinity
    if set to some number, the following sequence is generated:
    $rowstart$format$rowinside$format ... $format$rowend
  • rowstart => formatted text at start of a row if columns > 0, default is "" (empty)
  • rowinside => formatted text inside of a row if columns > 0, default is "" (empty)
  • rowend => formatted text at end of a row if columns > 0, default is "" (empty)
  • rowinsideempty => formatted text inside of a row if columns > 0 and no more images, default is "" (empty)
  • rowendempty => formatted text at end of a row if columns > 0 and no more images, default is "" (empty)

Variables

Variables are recognized and replaced in the format strings: format, rowstart, rowinside, rowend, rowinsideempty, rowendempty
  • $web the %WEB% the image is from
  • $topic the %TOPIC% the image is from
  • $width width in pixels of the original image
  • $height height in pixels of the original image
  • $version version number of the ioriginal mage
  • $name complete name of the original image (no path)
  • $sizeK size of the original image in kilobytes (example: 8k)
  • $size size of the original image in bytes (example: 8234)
  • $comment the comment of the image attachment
  • $wikiusername the WikiName of the user checked in the image
  • $username the user name of the user checked in the image
  • $thumburl the complete URL of the thumbnail image
  • $imageurl the complete URL of the original image
  • $date{...} the check in date of the original image, can be formatted like %GMTIME% (see TWikiVariables). The default format is like (if no {} spezified) "31 Dec 2002 - 19:30"
  • $n insert a line break
  • $imgnr number of the image (starts at 1)

Changed:
<
<
Examples:
>
>

Examples


Changed:
<
<
%IMAGEGALLERY%
>
>
%IMAGEGALLERY%

Changed:
<
<
%IMAGEGALLERY{ web="%WEB%" topic="%TOPIC%" size="small" }%
>
>
%IMAGEGALLERY{ web="%WEB%" topic="%TOPIC%" size="small" }%

Changed:
<
<
%IMAGEGALLERY{ web="Saneasylum" topic="ArtworkGallery" size="x50" }%
>
>
%IMAGEGALLERY{ web="Saneasylum" topic="ArtworkGallery" size="x50" }%

Added:
>
>
Generates a table with 4 rows, images are centerd and with a tooltip. Below each image is a simple description line with a image number.
%IMAGEGALLERY{columns="4" rowstart="|  " rowinside="  |  " rowend="  |$n" rowinsideempty="  |" rowendempty=" |$n" 
  format="<span class='imgGallery'><a href='$imageurl'><img src='$thumburl' title='$tooltip'/></a></span><br/>$imgnr: $comment"}%


1:

2:
   

Format the Images as a list, images have tool tips.

%IMAGEGALLERY{format="   * <span class='imgGallery'><a href='$imageurl'><img src='$thumburl' title='$tooltip'/></a></span> $wikiusername $date$n"}%
  • WillNorris? 01 Aug 2003 - 23:35
  • RicardoDeLosSantos? 05 Jan 2005 - 19:12

Format the Images as a list, images have tool tips and customized date.

%IMAGEGALLERY{format="   * <span class='imgGallery'><a href='$imageurl'><img src='$thumburl' title='$tooltip'/></a></span> $wikiusername $date{$year$mo$day-$hour:$min:$sec}$n"}%
  • WillNorris? 20030801-23:35:05
  • RicardoDeLosSantos? 20050105-19:12:33

ImageGalleryPlugin Settings

Plugin settings are stored as preferences variables. To reference

Line: 36 to 90

    • Set CONVERT = /usr/bin/convert
    • Set IDENTIFY = /usr/bin/identify
Added:
>
>
  • Additionaly program options for the CONVERT program
    • Set CONVERT_OPTIONS = ""

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Displays image gallery with auto-generated thumbnails for attachments.

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

Plugin Installation Instructions

Line: 56 to 113

Plugin Info

Plugin Author: TWiki:Main/WillNorris
Changed:
<
<
Plugin Version: 1 Aug 2003 (V1.002)
>
>
Plugin Version: 31 Jan 2004 (V1.1)

Change History: <!-- versions below in reverse order --> 
Added:
>
>
31 Jan 2004 Add format fields and variable substitution (autor TWiki:Main.RobertSuna)

1 Aug 2003 Updates from feedback from a Windows installation
25 Jul 2003 Initial version posted to TWiki.org
15 Mar 2002 Initial (internal) version
 <<O>>  Cambios es la página ImageGalleryPlugin (r1.2 - 01 Aug 2003 - WillNorris?)

META TOPICPARENT TWikiPreferences

TWiki Image Gallery Plugin

Changed:
<
<
This plugin offers image galleries... Pages containing %IMAGEGALLERY{"???"}% variables are expanded at view time.
>
>
Pages containing %IMAGEGALLERY% variables are expanded at view time, providing a thumbnailed image gallery for those images attached to a wiki page. Thumbnails are created automatically and subsequently cached. Display is simple ( trivial--probably not really good enough, although each picture is surrounded by a span with a class of imgGallery )

  • size > =small, medium, large, xlarge, huge
  • web => web; default is %WEB%
  • topic => topic; default is %TOPIC%
Changed:
<
<
Example:
>
>
Examples:

Changed:
<
<
%IMAGEGALLERY{ web="%WEB%" topic="%TOPIC%" size="medium" }%
>
>
%IMAGEGALLERY%

Changed:
<
<
%IMAGEGALLERY{ web="%WEB%" topic="%TOPIC%" size="10x10" }%
>
>
%IMAGEGALLERY{ web="%WEB%" topic="%TOPIC%" size="small" }%

%IMAGEGALLERY{ web="Saneasylum" topic="ArtworkGallery" size="x50" }%

Line: 22 to 22

ImageGalleryPlugin Settings

Plugin settings are stored as preferences variables. To reference

Changed:
<
<
a plugin setting write %<plugin>_<setting>%, i.e. %SPREADSHEETPLUGIN_SHORTDESCRIPTION%
>
>
a plugin setting write %<plugin>_<setting>%, i.e. %IMAGEGALLERYPLUGIN_SHORTDESCRIPTION%

  • Names and sizes for thumbnails (feel free to add additional entries or to modify these defaults)
    • Set TINY = 25x25
Line: 32 to 32

    • Set XLARGE = 250x250

  • Name and location of program used to generate thumbnails
Added:
>
>
    • Set IMAGE_MAGICK = /usr

    • Set CONVERT = /usr/bin/convert
Changed:
<
<
    • Set IMAGE_MAGICK = /usr/bin
>
>
    • Set IDENTIFY = /usr/bin/identify

Changed:
<
<
    • Set SHORTDESCRIPTION = Displays photo album image gallery for attachments.
>
>
    • Set SHORTDESCRIPTION = Displays image gallery with auto-generated thumbnails for attachments.

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

data/TWiki/ImageGalleryPlugin.txt Plugin topic
data/TWiki/ImageGalleryPlugin.txt,v Plugin topic repository
lib/TWiki/Plugins/ImageGalleryPlugin.pm Plugin Perl module
Changed:
<
<
>
>
pub/TWiki/ImageGalleryPlugin/twikiwide.gif test image for this page

Plugin Info

Changed:
<
<
Plugin Author: WillNorris?
Plugin Version: 15 Mar 2002
Change History: 15 Mar 2002: Initial version
>
>
Plugin Author: TWiki:Main/WillNorris
Plugin Version: 1 Aug 2003 (V1.002)
Change History: <!-- versions below in reverse order --> 
1 Aug 2003 Updates from feedback from a Windows installation
25 Jul 2003 Initial version posted to TWiki.org
15 Mar 2002 Initial (internal) version

CPAN Dependencies: none
Changed:
<
<
Other Dependencies: none
Perl Version: 5.000 and up
>
>
Other Dependencies: ImageMagick's convert and identify
Perl Version: 5 something ? (not sure--i'm using 5.8.0)

Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/ImageGalleryPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/ImageGalleryPluginDev

Related Topics: TWikiPreferences, TWikiPlugins

Changed:
<
<
-- WillNorris? - 08 Mar 2002
>
>
-- WillNorris? - 1 Aug 2003
META FILEATTACHMENT twikiwide.gif attr="" comment="" date="1059773705" path="twikiwide.gif" size="5850" user="WillNorris" version="1.1"
 <<O>>  Cambios es la página ImageGalleryPlugin (r1.1 - 25 Jul 2003 - WillNorris?)
Line: 1 to 1
Added:
>
>
META TOPICPARENT TWikiPreferences

TWiki Image Gallery Plugin

This plugin offers image galleries... Pages containing %IMAGEGALLERY{"???"}% variables are expanded at view time.

  • size > =small, medium, large, xlarge, huge
  • web => web; default is %WEB%
  • topic => topic; default is %TOPIC%

Example:

%IMAGEGALLERY{ web="%WEB%" topic="%TOPIC%" size="medium" }%

%IMAGEGALLERY{ web="%WEB%" topic="%TOPIC%" size="10x10" }%

%IMAGEGALLERY{ web="Saneasylum" topic="ArtworkGallery" size="x50" }%

ImageGalleryPlugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %SPREADSHEETPLUGIN_SHORTDESCRIPTION%

  • Names and sizes for thumbnails (feel free to add additional entries or to modify these defaults)
    • Set TINY = 25x25
    • Set SMALL = 50x50
    • Set MEDIUM = 95x95
    • Set LARGE = 150x150
    • Set XLARGE = 250x250

  • Name and location of program used to generate thumbnails
    • Set CONVERT = /usr/bin/convert
    • Set IMAGE_MAGICK = /usr/bin

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Displays photo album image gallery for attachments.

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

Plugin Installation Instructions

  • Download the ZIP file from the ImageGalleryPlugin home
  • Unzip = ImageGalleryPlugin.zip= in your twiki installation directory. Content:
    File: Description:
    data/TWiki/ImageGalleryPlugin.txt Plugin topic
    data/TWiki/ImageGalleryPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/ImageGalleryPlugin.pm Plugin Perl module

Plugin Info

Plugin Author: WillNorris?
Plugin Version: 15 Mar 2002
Change History: 15 Mar 2002: Initial version

CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.000 and up
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/ImageGalleryPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/ImageGalleryPluginDev

Related Topics: TWikiPreferences, TWikiPlugins

-- WillNorris? - 08 Mar 2002

Revision r1.1 - 25 Jul 2003 - 11:33 - WillNorris?
Revision r1.6 - 16 Oct 2005 - 09:37 - RicardoDeLosSantos