Configuration - Imageflow |
Wednesday, 25 June 2008 07:11 | ||||||||
Imageflow Module ConfigurationImageflow has several module configuration parameters that control where Imageflow gets the images to be included in the gallery, various options defining how the thumbnails are generated as well as several behavioral attributes of the gallery. They are listed below in the order that they appear on the Module edit screen. Click on the item of interest to get detailed information regarding that parameter. Module Class Suffix![]() This is a standard Joomla parameter that allows you to define a unique class for the module. Imageflow defines an 'imageflow' class on the outer HTML DIV that it generates. You can append any suffix that you desire to this by specifying a value here. Normally, this parameter should be left blank. The module id (described below) is usually enough to allow CSS styling of the gallery but there could be special circumstances where you might want to specify a suffix.
Module id![]() Specify a unique HTML id. This id is used for several purposes:
Any valid HTML id can be used as long as it is unique to all other ids on the page. Defaults to 'imf'. Note: Due to the fact that this value is also used to create a javascript variable on the page, it must begin with either a letter or underscore.
Load images from![]() This parameter tells Imageflow how it should acquire the images that it is to place in the gallery.
Directory path![]() Specify the directory that images are to be loaded from when using the 'Directory' or 'Both' options for the 'Load images from' parameter. TIP
Directory depthWhen displaying images from a directory, Imageflow can include images from any subdirectories that may be inside the main directory. This parameter controls how deep into the directory path Imageflow should go when including images. The default value of zero indicates that no subdirectory images will be loaded.
Image list fileDefines the location of a configuration text file that you have created to tell Imageflow what images to include in the gallery. A functional sample configuration file is supplied with the module at modules/mod_imageflow/samplelist.txt. A description of the contents of the image list configuration file is provided later in this document. TIP NOTE: This must be a plain text file. For MAC users using text edit, be sure to select 'Make Plain Text' in the Format menu before saving the file. Another MAC alternative is a free text editor called 'TextWrangler' at http://www.versiontracker.com NOTE*: If your captions/titles contain accented characters you must save the image list file using UTF-8 encoding. For windows notepad, this can be selected in the Encoding area of the save/save as dialog box.
Cascading stylesheet fileIf you create your own cascading stylesheet, you can specify a url that points to that file. It will be included in the page at load time instead of the CSS file supplied with the module. This parameter defaults to the CSS file provided with Imageflow. Imageflow detects when it has been loaded with Internet Explorer 6 and will attempt to load an additional cascading stylesheet that contains special css rules for IE6. That CSS file must have the same name as the Cascading stylesheet file specification with '-ie6' appended to it. In the example above, Imageflow will look for a CSS file named 'modules/mod_imageflow/css/imageflow-ie6.css'.
SliderThe slider that is displayed below the image gallery can optionally be hidden. Default is 'Show'.
CaptionsProvides the option of hiding the caption that is displayed below the image gallery. The caption consists of either the title attribute of the anchor or thumbnail image or if no title was specified, the filename of the image. Default is 'Show'.
Previous/next buttonsPrevious and next buttons can optionally be displayed on the slider line to allow the viewer to single step forward or backward through the gallery thumbnails by clicking on the appropriate button. Default is 'Hide'
Strip extension from filenameThis parameter controls whether or not the file extension will be removed from the filename when it is displayed as a caption. The default is 'Yes'.
Image stack sizeSpecifies the number of images (1-9) that will be displayed on either side of the center image. Default is 4.
Meta data templateProvides the path/filename of a template that defines to Imageflow the meta data information that is to be extracted from jpg images that are loaded via the directory load option. The template also defines the format of the caption that is to be displayed. This parameter defaults to a predefined template that is supplied with Imageflow. You can create your own template or modify the one supplied with the module. TIP
Output template
Image limit
Glide to image
Auto-step seconds
Active link on focusedThis parameter dictates the behavior of the gallery when you mouseover or click on the gallery thumbnails. One of the following settings may be chosen:
Highslide controlbarYes will cause a navagation control bar to appear on Highslide popup images when you mouseover the popup. Clicking on the next/previous arrows in the controlbar will advance to the next/previous popup image in the gallery as well as advancing the gallery thumbnails. Note: This parameter should only be set to yes if you are using Highslide to generate the popup images. Setting this parameter to yes without highslide present will cause errors to be generated on your page. The default is No.
Size percentDefines the size of the generated thumbnail image as a percentage of the original source image size. This value controls the size of the thumbnail image that is created and stored on the server. It has nothing to do with the size of the thumbnail that is displayed in the gallery. If your original source image is rather large a smaller value can yield a satisfactory thumbnail whereas for small images a small value will result in a somewhat pixelated thumbnail being displayed. The default is 35.
SharpenSpecify the amount of sharpening effect (0-9) to apply to the focused (center) thumbnail image to make it stand out from the non-focused (non-centered) thumbnails. The default is 0, no sharpening. Generated thumbnails can exhibit a certain amount of detail loss. Sharpening, in most cases, can restore some of the detail to the thumbnail image. PHP 5 or greater is required to produce this effect.
BlurSpecify the amount of blur effect (0-9) to apply to the non-focused (non-centered) thumbnail images to make the focused (centered) thumbnail standout. The default is 0, no blurring. PHP 5 or greater is required to produce this effect.
DarkenSpecify the amount of darkening effect (0-9) to apply to the non-focused (non-centered) thumbnail images to make the focused (centered) thumbnail standout. The default is 0, no darkening. PHP 5 or greater is required to produce this effect.
GrayscaleYes will display all of the non-focused (non-centered) thumbnail images in grayscale to make the focused (centered) thumbnail standout. The default is No. PHP 5 or greater is required to produce this effect.
Border width(s)This parameter can be used to generate a border on the thumbnail images. Numeric pixel width(s) may be specified, with or without commas, to define a border on each edge (top, right, bottom or left) of the thumbnail. Like the CSS border-width property, from one to four values may be specified. Examples:
Default is no borders.
Border color(s)This parameter can be used to specify the color of the border(s) on the thumbnail images. Hexidecimal color values(s) may be specified, with or without commas, to define the color of each edge (top, right, bottom or left) of the thumbnail. The hexidecimal value is in the form #RRGGBB where RR is the amount of red, GG is the amount of green with BB representing the amount of blue. This color chart at W3 Schools is a great reference. Like the CSS border-color property, from one to four values may be specified. Examples:
Note: You can use a shorthand hex value of 3 digits if you wish. For example, #323 is the same as #332233. Default is #000000 (black).
TransparentDefines whether to generate transparent or non-transparent thumbnail reflections.
For both methods, the generated thumbnail is written to the same directory as the source image. The thumbnail file name begins with 'refl_' followed by the name of the original image along with an alphanumeric key that is generated from the module options used to create the thumbnail. Subsequent thumbnail refection requests for a given source image will automatically be directed toward this file rather than generating a new thumbnail reflection. Once the thumbnails are generated, the imageflow display is considerably faster and results in less load on the web server Default is non-transparent reflections.
Fade to colorThis parameter is only meaningful when using non-transparent reflections. It defines the color to 'fade the reflection into'. A single hexidecimal color value may be specified. The hexidecimal value is in the form #RRGGBB where RR is the amount of red, GG is the amount of green with BB representing the amount of blue. This color chart at W3 Schools is a great reference. Specify a color value that matches the background of your Imageflow gallery. Default is #000000 (black).
Alpha fade startThe starting intensity of the reflection is controlled by this parameter. Values in the range of 0 (completely faded) to 127 (no fade) are allowed. You can also specify the values as a percentage where 0% is completly faded to 100% (no fade). You can effectively eliminate the reflection portion of the thumbnail image by specifying an alpha fade start and alpha fade end of 0. Default is 80 (50%).
Alpha fade endThe ending intensity of the reflection is controlled by this parameter. Values in the range of 0 (completely faded) to 127 (no fade) are allowed. You can also specify the values as a percentage where 0% is completely faded to 100% (no fade). In most cases it is desirable for the reflection to fade all the way into the background. Default is 0.
Tint colorThis parameter is only meaningful when using transparent reflections. It can be used to add a tint of color to the reflection. For example, you can increase the blue channel for a more 'watery' effect. A single hexidecimal color value may be specified. The hexidecimal value is in the form #RRGGBB where RR is the amount of red, GG is the amount of green with BB representing the amount of blue. This color chart at W3 Schools is a great reference. Default is no tint.
Memory limitWhen using very large images you may encounter a case where just a blank page is displayed instead of the gallery that you expected. This is usually caused by the PHP memory_limit parameter being too small to support thumbnail generation of the images that you are using.. Imageflow estimates the amount of memory required for thumbnail generation and if it determines that the PHP memory_limit being used is insufficient, tries to override that setting for the duration of the thumbnail creation process. If successful, you will never need to use this parameter. However, it is not always possible to perform the override because the PHP functionality needed may not available depending upon how your version of PHP was created. This advanced parameter can be used to try to temporarily override the PHP memory_limit parameter. The value you specify here is the same as what you would use for the memory_limit parameter in the php.ini file. For example, 32M would indicate a memory limit of 32 megabytes.
Max execution time
End FAQThe Image List FileIn its simplest form, the image list file is a text file containing a list of img= specifications, one for every image to be loaded in the gallery. Consider the Imageflow gallery and the subsequent image list file shown below.
If you hover over and/or click on the thumbnail images you can see that the titles and captions specified in the image list file were included in the resulting gallery. CommentsAny line that begins with 2 slashes is considered a comment by Imageloader and is completely ignored. Comment lines allow you to document areas of the image list file and to temporarily remove image definitions without actually deleting them. Image definitionsAn image definition consists of a number of keyword/value pairs and takes the general form of: keyword1 = "value1" keyword2 = "value2"....
Notice that keywords specified in the image definition (img=, hreftitle=, etc.) match variable values in the output template ({img}, {hreftitle}, etc). Imageflow simply substitutes the value that you specify for each keyword into the output template. After all variables are substituted the final HTML markup is output to the page. For example, the resulting HTML for the first image definition above is as follows:
The output template contains several variables that are automatically filled in by Imageflow depending upon the Imageflow module parameters that you specify. These are internally generated variables that are prepended with an underscore so as to not clash with any variables that you may define. They are:
These variables can be ignored for the purposes of creating an image list file, however, if you are creating your own output template you may need to include these in your template wherever feasible. More Image List FileThe three images shown below were loaded using the samplelist.txt image list file that is installed with Imageflow, also shown.
VariablesA variable definition is denoted by a dollar sign preceding the alphanumeric variable name and takes the general form of: $variablename = "definition data" Multiple definitions can be included on a single line. The variable name is case insensitive, i.e. {BASEURL0} is the same as {baseurl0}. Variables provide a shorthand way of specifying information that can potentially change. File paths and URLs are especially suited for this. If at a later time the information changes, all you need do is change the variable and any line using that variable automatically changes. In the example above, the first variable defined is named $baseurl0 (line 8). It is assigned the value "modules/mod_imageflow/images/". Once defined, the variable can be used in any line by specifying the variable name surrounded by brackets, i.e. {baseurl0}. The first IMG definition (line 38) uses this variable as follows: img = "{baseurl0}thumbstrip20.jpg" This is equivalent to the following: img = "modules/mod_imageflow/images/thumbstrip20.jpg" EXIF dataIf your server supports the PHP EXIF library, you can choose to include exif data in combination with or instead of your own captions. In the samplelist.txt file above, lines (13-26) define variables for exif data elements and variables containing HTML DIV information. The sample illustrates 3 different ways that captions and exif information can be combined to produce the caption.
|
||||||||
Last Updated on Monday, 30 April 2012 07:59 |