Skip to content

RodRitter/Simple-Image-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Image Server

Retrieve image assets at any size from a single source image

Installation

Use the package manager npm to install dependencies.

npm install

Usage

Add source images

Add source images to /images directory

Start the server

You can change the port in the .env file.

node server.js

Fetch optimised images

// Original
http://localhost:5555/landscape.jpg

// Optimised
http://localhost:5555/landscape.jpg?width=800
http://localhost:5555/landscape.jpg?width=1000&format=png
http://localhost:5555/landscape.jpg?width=1500&blur=3

Options

  • width
  • height
  • blur
  • format (jpg, png)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published