A simple Express API which resizes images using the sharp library
Uses:
- Typescript
- Jasmine
- Sharp
Usage:
- Download or use images in the ./images/full dir.
- Compile Typescript using "npm run build"
- Execute "npm start"
- Go to "http://localhost:5000/api/image?imageName=image_name_without_ext&width=required_width&height=required_height"
- The resized image will be placed in the ./images/thumb dir
Other Scripts:
- "npm run lint" - to run prettier & eslint
- "npm run test" - to run jasmine tests
- "npm run dev" - run express api under nodemon