Changing the Default Scale At Which Images are Displayed.

February 14, 2005 | KB: 1000890
WebLink 6

Summary

The default size for displaying images in Laserfiche WebLink can be customized.

Resolution

View the Settings.inc file and modify the values of DEFAULT_SCALE, DEFAULT_XLENGTH, and DEFAULT_YLENGTH. Settings.inc is located in the ASPs folder of your WebLink installation folder. By default, the path should be C:\Program Files\Laserfiche\WebLink\ASPs.

Important: Be aware that users will be unable to zoom in or out while DEFAULT_SCALE is set to "fit." You must change it back to a numerical value to enable zooming in and out.

To set the default scale

  1. Using a text editor, open Settings.inc.
  2. Change the current settings for the listed constants to the following:

    Const DEFAULT_SCALE = "fit"
    Const DEFAULT_XLENGTH = 1000
    Const DEFAULT_YLENGTH = 1000

    Note: Setting DEFAULT_SCALE to "fit" will scale the image to the values defined by DEFAULT_XLENGTH and DEFAULT_YLENGTH. Alternatively, you can specify DEFAULT_SCALE as a percentage (multiplied by 100). DEFAULT_XLENGTH and DEFAULT_YLENGTH determine the horizontal and vertical size for an image, respectively. The value is specified in pixels.

  3. Save the changes and close the text editor.
  4. Check to see that images are being displayed at the desired size. If not, you should adjust the DEFAULT_XLENGTH and DEFAULT_YLENGTH values up or down accordingly.