Parameters
Parameters are added to the <fsi-imagegrid> tag.
<body>
<fsi-imagegrid dir="images/" cellWidth="300" cellHeight="250"
useTouchZoom="true" useQuickZoom="false" autoCrop="cc">
</fsi-imagegrid>
</body>
debug
boolean
falseDefaultDisplay debug and status information in the browser's javascript console.
format
string
autoDefaultDefault is auto which automatically chooses the best format depending on the browser; alternatively you can choose WEBP, JPEG, PNG or GIF. Auto delivers the images adaptively
as WEBP in supporting browsers, and switches to PNG or JPEG on browsers not supporting the format. If you would like to use WEBP, the best way would be to set auto as the format.
dir
string
Defines the directory path which contains the images used for the grid.
width
integer
Defines the width of the FSI Image Grid instance in % or px.
height
integer
Defines the height of the FSI Image Grid instance in % or px.
autoInit
boolean
trueDefaultPrevents automatic initialisation when the instance has been attached to the DOM. Helpful e.g. when working with React.
observeInlineTemplateChanges
boolean
falseDefaultIf set to true, a mutation observer live observes all changes which are made to the metadata divs
cellWidth
integer
Defines the width of each image cell in px.
cellHeight
integer
Defines the height of each image cell in px.
garbageCollectionSize
integer
-1DefaultSpecifies how many images will be kept in memory although they ar not visible anymore.
Use -1 for auto sizing the garbage collection size.
Use 0 to disable garbage collections (all images will be kept in memory, not recommended for huge collections)
Any other positive number:
At least the specified number of images will be kept in memory.
Can be more images if required by instance size and preloadCount parameter.
metaDataTemplate
string
details.jsonDefaultDefines the server side template file to load meta data with.
preloadCount
integer
40DefaultThe number of images to pre-load although they are currently not visible.
Disabling preload (set value to 0) will only load images visible on stage.
cfg
string
When using a relative path the location specified by the FSI Viewer FSIBase parameter will be used, which is viewer/config/ by default.
autoCrop
string
falseDefaultCrop images to fill entire image area. Default is false. Use any combination of t,c,b and l,c,r where tl is top-left.
useQuickZoom
boolean
falseDefaultDefines if FSI QuickZoom is used for the grid images. If activated, the images will be magnified if you hover over them.
useTouchZoom
boolean
falseDefaultDefines if FSI TouchZoom is used for the grid images. If activated, the images will be magnified if you pinch-zoom into the website with a touchscreen device.
viewerSelector
string
Defines a selector (e.g. #myViewer or fsi-viewer or .myClass) of an FSI Viewer instance to be used to display the selected image.
You may use auto to use the first <fsi-viewer> tag in the document (if there is only one).
imageListLimit
string
infoDefaultLimits the image list to a certain amount of images within the directory.
The parameter is used like this: 0,10 - the first value defines the starting image, the second the amount of images displayed.
In this case it would start at the first image and show the first ten images. 5,5 would start the list with the fifth image and shows the
fifth image plus the four images that are listed behind it.
imageListSort
string
filenameDefaultSorts the image list with any valid sort item name for FSI Server. Available sort names:
filename(default)-
width -
height -
lastmodified resolution>-
importstatus
imageListSortOrder
string
asc | descValuesDefines the order of the image list sorting. Possible values: asc (Ascending) or desc (Descending).
ListFilterPositive
string
Filters the image list to a certain amount of images within the directory using RegEx. If images match the Regular Expression, they will be included in the image list.
If both ListFilterPositive and ListFilterNegative are used, ListFilterPositive is always used first.
The filter will be applied before any other parameter is applied, i.e. all other parameters only apply to the already filtered list.
Example: ListFilterPositive="/\/09\d*.tif/i"
ListFilterNegative
string
Filters the image list to a certain amount of images within the directory using RegEx. If images match the Regular Expression,
they will be excluded from the image list. If both ListFilterPositive and ListFilterNegative are used, ListFilterPositive is always used first.
The filter will be applied before any other parameter is applied, i.e. all other parameters only apply to the already filtered list.
Example: ListFilterNegative="/\/09\d*.tif/i"