Categories
Knowledge Support Support Categories exacqVision Webservice Products

Changing Web Server Default Image Quality (Legacy)

Instructions

These instructions only apply to web services 9.4 and earlier

The changes described only affect the default image quality in “simple” mode and this process is not upgrade safe. You must perform this process again each time you upgrade Web Server.

<br>

  1. For Windows: Browse to C:\Program Files\exacqVision\WebService\bin\templates.

    For Linux:
     Browse to /usr/local/exacq/webservice/bin/templates.
  2. Open the file config.html.mako.
  3. Look for the following section:

    query_string = urllib.urlencode([(“s”, hex(server.id)),
                                       (“p”, camera.plugin),
                                       (“d”, camera.device),
                                       (“i”, camera.input),
                                       (“w”, “320”),
                                       (“h”, “240”),
                                       (“q”, “7”)])
  4. Add a line to the end of that section as follows:

    query_string = urllib.urlencode([(“s”, hex(server.id)),
                                       (“p”, camera.plugin),
                                       (“d”, camera.device),
                                       (“i”, camera.input),
                                       (“w”, “320”),
                                       (“h”, “240”),
                                       (“q”, “7”),
                                       (“r”, “5”)])
  5. Change the values to match your preferred settings for the following parameters:

    NOTE: Starting in Web Server 2.1, the following values are stored in a cookie generated from the Web Server. However, you can add these values to the config.html.mako file to override the cookie.

    w = width
    h = height
    q = quality
    r = refresh interval
  6. Save the file.
  7. Open or refresh the Web Server page in your web browser.

<br>