Skip to content

Glinduff/image-resize-process

Repository files navigation

Resize image

Express api for resize images

Installation

Use npm to install dependencies

npm install

Usage

npm run build  # start the project at port 4000
npm run jasmine  # testing endpoints and image process
npm run build  # build de project

Endpoint Testing

http://localhost:4000/api/image # check status code 200
http://localhost:4000/api/image?filename=fjord&width=800&height=200 #check if params (filename, width and height) exist
http://localhost:4000/api/image?filename=fjord&width=800&height=200 #check if image exist
http://localhost:4000/api/image?filename=fjord&width=800&height=200 #check if image width is number
http://localhost:4000/api/image?filename=fjord&width=800&height=200 #check if image height is number

Utilities

utilities/ image # middlewares for checking params
utilities/ thumb # middleware for check if thumbnail exist, send to the user and avoid reprocessing
utilities/ interfaces # image and error interfaces for create new objects 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published