Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  1. Fotoware Alto
    • 11.14 Schreckhorn
    • Terminology
    • Solutions
    • User Guide - Deutsch
    • User Guide - English
    • API Changelog
  2. Fotoware Veloz
    • Managing users and groups
    • Configuring archives
    • Configuring workflows
    • Configuring site behavior
    • Navigating and searching to find your assets
    • Working with your assets
    • Editing asset metadata
    • Uploading files
    • Version Control in Fotoware
    • Albums - Creating and sharing collections
    • Placing assets in a CMS
    • Working with the Fotoware Pro interface
    • Using the Fotoware plugins
    • Consent management
    • User guide to FotoWeb for iPad (Legacy)
    • Picture conferencing with FotoWeb Screens (Legacy)
    • What's what in Fotoware
    • GDPR
    • Fotoware Veloz releases
    • Activity Exports
    • Fotoware Example Workflows
  3. Fotostation
    • Getting started with Fotostation
    • Viewing, selecting and sorting files
    • Managing your assets with archives
    • Adding metadata to assets
    • Searching for assets
    • Working with your assets
    • Version Control in Fotostation
    • Automating tasks with Actions
    • Configuring metadata fields and editors
    • Configuring Fotostation
    • Configuring Fotostation for multi-user environments
    • Troubleshooting Fotostation
  4. Fotoware Flow
    • What is Flow?
    • Getting started
    • Flow dictionary
  5. Fotoware On-Premises
    • Getting started
    • Index Manager
    • FotoWeb
    • Color Factory
    • Connect
    • Operations Center Guide
  6. Integrations and APIs
    • The Fotoware API
    • Creating integrations using embeddable widgets
    • Authorizing applications using OAuth
    • Auto-tagging
    • FotoWeb Drag and Drop export
    • Integration using webhooks
    • Optimizely and Episerver plugin documentation
    • User Interface Integrations
  7. Fotoware Mobile
    • User guide for Fotoware Mobile for iPhone and Android
    • User guide to FotoWeb for iPad (Legacy)
    • User guide to FotoWeb for iPhone and Android (Legacy)

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support

Table of Contents

Accessing the Preview Agent Enabling the agent Parameters Authentication Return values Examples
  • Home
  • Fotoware On-Premises
  • FotoWeb
  • Legacy APIs (On-Premises)
  • Other Legacy APIs (On-Premises)

Using the Preview Agent to get pictures out of FotoWeb (Legacy)

29. April 2025

Elaine Foley

Table of Contents

Accessing the Preview Agent Enabling the agent Parameters Authentication Return values Examples

The FotoWeb Preview Agent is available in FotoWeb with an API license. It provides functionality for dynamically resizing images and delivering them via HTTP in JPEG RGB format. It takes a search string as input and returns a preview in the requested size of the newest file in the search result.

Note: The Preview Agent API is deprecated and will be set to End of Life on July 1st, 2024.

If you have integrations that display previews in real-time, we recommend looking into alternative solutions such as obtaining temporary preview links from the RESTful API.

The Preview Agent is a legacy API for delivering image renditions. For performance reasons, the maximum rendition size is 2048 pixels. However, even if the original image is smaller than 2048 pixels, it will be scaled up to 2048 pixels if this size (or a larger size) is requested.

The preview agent is not designed for downloading original images, and attempting to use it for this purpose is not recommended. We recommend using the rendition API instead, as it can deliver the original file in its original size and format.

Accessing the Preview Agent

To access Preview Agent, you need to send a HTTP request to the following URL:

http://servername.domain.com/fotoweb/cmdrequest/rest/PreviewAgent.fwx

Enabling the agent

The agent must be explicitly enabled for a group of users on a site before it can be used.

Parameters

The Preview Agent receives all its parameters through the query string:

Parameter Description
sr The search string to pass to the Index Manager.
sz Used to specify the size of the returned preview, in pixels.
rs Resolution (DPI) - must be between 1 and 1000.
pg Page (e.g. of a PDF document)
qy Preview quality from 40 (lowest) to 100 (highest). If no quality parameter is given or is outside the given range, the default quality will be delivered. (Configurable in the Operations Center)
ar The id of the archive to search in.
username (optional) The username of a valid user in FotoWeb with download access to the archive.
password (optional with username) The password of the FotoWeb user.

Authentication

The Preview Agent is integrated with the authentication scheme used by the other FotoWeb modules. This means that a user who has logged in to FotoWeb will be recognized by the Preview Agent (using the session cookie). It is, therefore, unnecessary to send a username and password explicitly through the query string if the user is already logged in. In this case, access control and event logging will happen using the user's credentials. It is possible to bypass this authentication by explicitly sending the credentials through the username and password parameters.

Return values

200 OK

The search returned one or more files and a preview of the newest file has been returned in the message body. The return type will be image/jpeg and the body will consist of binary image data.

400 Bad Request

A required parameter is missing or invalid.

403 Forbidden

The current user does not have download access in the specified archive.

404 Not Found

No files matched the specified search string.

500 Internal Server Error

The server was unable to communicate with Index Manager, or another error occurred.

Examples

Searching for 'auto' in archive 5004 at http://fotoweb.fotoware.com with a preview size of 400 pixels:

http://fotoweb.fotoware.com//fotoweb/cmdrequest/rest/PreviewAgent.fwx?ar=5004&sr=auto&sz=400

Preview delivered from the Preview Agent

Searching for 'soccer' in archive 5000 on the same server with a preview of 400 pixels. This archive is not open for guest users. Therefore, 'username' and 'password' parameters are supplied in the query string:

http://fotoweb.fotoware.com/fotoweb/cmdrequest/rest/PreviewAgent.fwx?ar=5000&sr=soccer&sz=400&username=XXXX&password=XXXX

Preview delivered from the Preview Agent

export images preview agent

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Enabling the Preview Agent and Archive Agent
  • Indexing video files
  • What is the Archive Agent API?
eco-lighthouse-miljøfyrtårn

Company

  • About us
  • Resellers
  • Careers
  • Contact us

Help & support

  • Support center
  • Consultancy
  • Tech partners
  • Fotostation
  • System status

Trust Center

  • Legal
  • Security
  • Sustainability & ESG

Locations

Fotoware AS (HQ)
Tollbugata 35
0157 OSLO
Norway
FotoWare Switzerland AG
Industriestrasse 25
5033 Buchs (AG)
Switzerland

Copyright 2025 Fotoware All rights reserved.

  • Terms of service
  • Privacy policy
  • Cookie policy

Knowledge Base Software powered by Helpjuice

Expand