You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Vic 8929d7d41a added test with jasmine 2 years ago
images added test with jasmine 2 years ago
spec/support added test with jasmine 2 years ago
src added test with jasmine 2 years ago
.eslintrc.json install packages dependencies + init node routes 2 years ago
.gitignore Working display and resize 2 years ago
.prettierrc.json install packages dependencies + init node routes 2 years ago
LICENSE Initial commit 2 years ago
README.md tsconfig fix + updated README.md 2 years ago
package.json added test with jasmine 2 years ago
tsconfig.json added test with jasmine 2 years ago

README.md

Resize-Api

The resize API allow to place images into your frontend with the size set via URL parameters for rapid prototyping

A library to serve properly scaled versions of your images to the front end to reduce page load size

Installation

1- Install packages dependencies npm install

2- build the project npm build

3- run the node server node ./build/index

You can also run the code through the nodemon devepement server npm run start

When the server is running, you can resize an image by going to this url and adding parameters to resize the image http://localhost:5000/api/image?filename=encenadaport&width=200&height=200

Built with

  • Typescript
  • Node
  • Sharp module to resize the image
  • Express
  • Git

Author

Anis Benziane