It is possible to let Websnap generate previews with fixed dimensions. This can be configured via the screenshotsizing element in the solution. There is no possibility to set this via the Solution Editor.


Websnap tags the generated previews with meta data that contains the dimensions of the actual viewport (browser dimensions). The default use case is that when a preview is retrieved from Rigi server, it will be shown in an iframe that has the correct dimensions. The user can override those and resize the preview.


In specific use cases such as using screenshots that are stored locally on disk, the screenshots must get fixed dimensions at the moment Websnap creates them.

The screenshotsizing element in the .rigsln file defines if and how websnap should fixate the dimensions of the preview.


screenshotsizing

Description

Dynamic

(default). Websnap will not insert specific HTML codes to fixate the width and/or height.

FixedWidth

The generated screenshot will have a fixed width.

FixedHeight

The generated screenshot will have a fixed height.

FixedWidthHeight

The generated screenshot will have a fixed width and height.