Informatik, Modellbau und Privates von Georg
[ start | index | login ]

Image Server, version #4 ( #3 < #5 > ... #12)

Created by georg. Last edited by georg, 3 years and 327 days ago.. Viewed 59,782 times. #4

General

The Image Server is a CGI-script that provides pictures in various dimensions.

Features

  • request with arbitrary bounding box
  • original picture ratio is maintained
  • delivering and caching of pictures in dimensions of a certain raster.
  • picture fits into bounding box (no dimension will be larger, but can be smaller)
  • picture is just scaled down
  • allow browser side caching, even for different bounding boxes (using redirection)
  • support extern storage of scaled pictures to allow mirroring. (redirection map)

Specification

Behaviour

Request

A picture is requested with an picture name and a bounding box. The bounding box specifies the maximal size of the image. The Image Server has a configured raster in which it provides pictures. Lets assume the raster is set to 50 pixel. The picture size is scaled down to fit in the bounding box and then the width is rounded down multiple of 50. (The height is obviously scaled down as well) The needed version of the picture is looked up in the cache and is generated if needed. The file name contains the dimensions and the request is answered using redirection to that file. That allows browser side caching even for slightly different bounding boxes.

Interface

Content

Help
For hints about formatting text see snipsnap-help.

Logged in Users: (1)
… and a Guest.

Recently Changed
snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt