Skip to content

LeviofCrypto/express-sharp-image-server

Repository files navigation

Simple image server using Express and sharp

This is a project for running a very simple Express image server, which enables resizing and compression of images with sharp. It only returns webp-formatted images, though modifying this would require small changes to the code.

Run

npm install
npm run start

In e.g. a browser, visit localhost:3000/image, providing filebase, width, height and quality query parameters, say http://localhost:3000/image?filebase=programmer_with_screens&width=1200&height=700&quality=60.

Docker run

docker compose up -d
# docker compose down

Visit http://localhost:7006/image?filebase=programmer_with_screens&width=1200&height=700&quality=60.

Preexisting images

All images have Creative Commons or similar licenses. If you plan on using them yourselves, please check the individual images' licenses and attribute the original sources if possible.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors