Giter Club home page Giter Club logo

fastresize's Introduction

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).

fastresize's People

Contributors

lutoma avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.