Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (35 loc) · 1.27 KB

README.rst

File metadata and controls

51 lines (35 loc) · 1.27 KB

fastresize

fastresize is a small FastCGI daemon that resizes images on the fly. It has a very low memory footprint and uses almost no CPU time (except for the actual resizing that ImageMagick does, of course).

Dependencies

  • ImageMagick
  • libmagickwand
  • libfcgi

Usage

fastresize was built to be used with nginx and makes use of some nginx-specific features like the X-Accel-Redirect. Altough it might be possible to get it to run with other webservers, it is untested (Early version have also been used with lighttpd).

Please see nginx-sample.conf for an example of how to configure your nginx to correctly pass requests to fastresize.

Launching fastresize

The syntax to launch fastresize is

fastresize [root] [thumbnail_root] [listen_addr] [user] [group] [num_workers]
root
The directory assets should be served from. Don't forget the trailing slash.
thumbnail_root
The directory thumbnails should be saved at. Don't forget the trailing slash.
listen_addr
The socket address to listen on, for example 127.0.0.1:9000
user
User name to run under
group
Group name to run under
num_workers
A number larger or equal to 1 that defines how many worker processes will be spawned. Usually, n+1 is a good choice (n = CPU cores).