Skip to content

franksoftgrid/express-resize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express-Resize

Express middleware to resize images on the fly.

Installation

npm install --S express-resize

Usage

If you are using other middleware make sure to include express-resize before them!

var express = require('express');
var resize = require('express-resize');

var app = express();

app.use(resize);
app.use(express.static()); //express.static initialized after express-resize

app.listen(3030);

Just put the full sized image in your content directory and request it with the width and or height parameters. For example:

Supported formats are: jpg, jpeg, png, gif, svg.

Todo

  • Provide options for crop positioning

About

Express middleware to resize images on the fly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published